1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00

allow manager to create/edit/delete product's category

This commit is contained in:
Du Peng 2022-07-13 09:12:51 +02:00 committed by Sylvain
parent 778f98bd9a
commit 5826f462d6

View File

@ -3,18 +3,18 @@
# Check the access policies for API::ProductCategoriesController
class ProductCategoryPolicy < ApplicationPolicy
def create?
user.admin?
user.privileged?
end
def update?
user.admin?
user.privileged?
end
def destroy?
user.admin?
user.privileged?
end
def position?
user.admin?
user.privileged?
end
end