10 lines
148 B
Ruby
10 lines
148 B
Ruby
class Operator::JobPolicy < ApplicationPolicy
|
|
pre_check :allow_operators
|
|
|
|
private
|
|
|
|
def allow_operators
|
|
allow! if user.operator?
|
|
end
|
|
end
|