1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-19 08:52:25 +01:00
fab-manager/app/policies/product_policy.rb

17 lines
257 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
def destroy?
user.privileged?
end
end