Class: Spree::PermissionSets::UserManagement Private
- Defined in:
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #activate! ⇒ Object private
Methods inherited from
This class inherits a constructor from
Instance Method Details
#activate! ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
4 5 6 7 8 9 10 11 12 13 14 15 16
# File 'lib/spree/permission_sets/user_management.rb', line 4 def activate! can [:admin, :display, :create, :update, :save_in_address_book, :remove_from_address_book, :addresses, :orders, :items], . # Note: This does not work with accessible_by. # See https://github.com/solidusio/solidus/pull/1263 can :update_email, . do |user| user.spree_roles.none? end cannot [:delete, :destroy], . can :manage, :: can :display, :: end