Added acces rules for jobs, operator/jobs and admin/dashboard view, including lazy loading for cancel button in broadcasts

This commit is contained in:
2024-09-13 14:27:50 +02:00
parent 64289d045d
commit 418b41556e
19 changed files with 145 additions and 11 deletions

View File

@@ -0,0 +1,21 @@
class Operator::JobPolicy < ApplicationPolicy
pre_check :allow_operators
def index?
end
def update?
end
def increment_page?
end
def decrement_page?
end
private
def allow_operators
allow! if user.operator?
end
end