blob: ee742a083fd56f73667b2f2b39e396032cc738ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class LineReferentialPolicy < ApplicationPolicy
class Scope < Scope
def resolve
scope
end
end
def synchronize?; instance_permission("synchronize") end
private
def instance_permission permission
user.has_permission?("line_referentials.#{permission}")
end
end
|