Skip to content

Commit f1a41b5

Browse files
committed
HOTFIX - use comment policy
1 parent 7b8a28a commit f1a41b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/admin/comments_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def default_sorting_direction
6060
sig { void }
6161
def resend
6262
comment = Comment.find(T.cast(params[:id], String))
63-
authorize(comment, :resend?, policy_class: Admin::AuthorityPolicy)
63+
authorize(comment, :resend?, policy_class: Admin::CommentPolicy)
6464
comment.send_comment!
6565
redirect_to({ action: :show }, notice: t(".success"))
6666
end

0 commit comments

Comments
 (0)