Class: Spree::PermissionSets::UserDisplay

Inherits:
Base
  • Object
show all
Defined in:
lib/spree/permission_sets/user_display.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Spree::PermissionSets::Base

Instance Method Details

#activate!Object


6
7
8
9
10
# File 'lib/spree/permission_sets/user_display.rb', line 6

def activate!
  can [:read, :admin, :edit, :addresses, :orders, :items], Spree.user_class
  can [:read, :admin], Spree::StoreCredit
  can :read, Spree::Role
end