Sha256: 5a1708bf6700ec3a0cfac1e20575c80a44e740727cd29f033b4225f6a470d9f6
Contents?: true
Size: 668 Bytes
Versions: 3
Compression:
Stored size: 668 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 class << self def privilege :display end def category :user end end 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
solidus_core-4.4.2 | lib/spree/permission_sets/user_display.rb |
solidus_core-4.4.1 | lib/spree/permission_sets/user_display.rb |
solidus_core-4.4.0 | lib/spree/permission_sets/user_display.rb |