mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
allow manager to create/edit/delete product's category
This commit is contained in:
parent
11fc251557
commit
5242d7b021
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user