jobs: update jobs dashboard to work with GoodJob.

Update the jobs dashboard at /delayed_jobs to work with GoodJob instead
of DelayedJob.
This commit is contained in:
evazion
2022-01-02 21:05:10 -06:00
parent c06bfa64f5
commit f7784d2340
7 changed files with 59 additions and 173 deletions

View File

@@ -1,6 +1,10 @@
# frozen_string_literal: true
class DelayedJobPolicy < ApplicationPolicy
class GoodJobPolicy < ApplicationPolicy
def index?
true
end
def update?
user.is_admin?
end