admin
and user
roles. You can create more roles in the Admin Panel UI or rails console / seed, eg.:
customer_service
with some limited access to Admin Panel only Orders section.
Create a new file called app/models/customer_service_ability.rb
can/cannot
methods more.
Now we need to inform Spree to use this ability, create another file app/models/spree/ability_decorator.rb
with contents:
config/initializers/spree.rb
, eg.
app/models/custom_ability.rb