pundit: convert delayed jobs to pundit.

This commit is contained in:
evazion
2020-03-17 18:09:10 -05:00
parent 4a36b99614
commit b83c612246
3 changed files with 16 additions and 7 deletions

View File

@@ -24,7 +24,7 @@
<%= time_ago_in_words_tagged(job.run_at) %>
<% end %>
<% t.column column: "control" do |job| %>
<% if CurrentUser.is_admin? %>
<% if policy(job).update? %>
<% if job.locked_at? %>
Running
<% elsif job.failed? %>