We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b8a28a commit f1a41b5Copy full SHA for f1a41b5
1 file changed
app/controllers/admin/comments_controller.rb
@@ -60,7 +60,7 @@ def default_sorting_direction
60
sig { void }
61
def resend
62
comment = Comment.find(T.cast(params[:id], String))
63
- authorize(comment, :resend?, policy_class: Admin::AuthorityPolicy)
+ authorize(comment, :resend?, policy_class: Admin::CommentPolicy)
64
comment.send_comment!
65
redirect_to({ action: :show }, notice: t(".success"))
66
end
0 commit comments