1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-12 23:09:03 +01:00
fab-manager/app/policies/product_policy.rb

25 lines
349 B
Ruby
Raw Normal View History

2022-07-13 15:06:46 +02:00
# frozen_string_literal: true
# Check the access policies for API::ProductsController
class ProductPolicy < ApplicationPolicy
def create?
user.privileged?
end
def update?
user.privileged?
end
2022-10-11 18:53:12 +02:00
def clone?
user.privileged?
end
2022-07-13 15:06:46 +02:00
def destroy?
user.privileged?
end
2022-09-08 17:51:48 +02:00
def stock_movements?
user.privileged?
end
2022-07-13 15:06:46 +02:00
end