1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00

spaces policy

This commit is contained in:
Sylvain 2017-02-13 16:12:14 +01:00
parent 05d4b7b3c5
commit c254cad8e5

View File

@ -0,0 +1,13 @@
class SpacePolicy < ApplicationPolicy
def create?
user.is_admin?
end
def update?
user.is_admin?
end
def destroy?
user.is_admin? and record.destroyable?
end
end