Files
danbooru/app/policies/good_job_policy.rb
evazion f7784d2340 jobs: update jobs dashboard to work with GoodJob.
Update the jobs dashboard at /delayed_jobs to work with GoodJob instead
of DelayedJob.
2022-01-02 21:21:04 -06:00

17 lines
277 B
Ruby

# frozen_string_literal: true
class GoodJobPolicy < ApplicationPolicy
def index?
true
end
def update?
user.is_admin?
end
alias_method :cancel?, :update?
alias_method :destroy?, :update?
alias_method :retry?, :update?
alias_method :run?, :update?
end