Sha256: 0846bf6fa90c77b6303a4c11f69336ba1e38b06f2586860d50f6aa36d5eda962
Contents?: true
Size: 534 Bytes
Versions: 16
Compression:
Stored size: 534 Bytes
Contents
# frozen_string_literal: true module Spree module PermissionSets # Read-only permissions for users, roles and store credits. # # This permission set allows users to view all related information about # users, roles and store credits, also from the admin panel. class UserDisplay < PermissionSets::Base def activate! can [:read, :admin, :edit, :addresses, :orders, :items], Spree.user_class can [:read, :admin], Spree::StoreCredit can :read, Spree::Role end end end end
Version data entries
16 entries across 16 versions & 1 rubygems