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:
customer_service
role.
You can be even more granular with the permissions by using the can
method.
customer_service
role to only the Orders and Products pages. However they won’t be able to delete products or add new ones, just update existing ones.