]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/issue_comments_controller.rb
Bump eslint from 8.56.0 to 8.57.0
[rails.git] / app / controllers / issue_comments_controller.rb
index 7edef184e782cf560a5c31d5a68b9c1550f1b88c..5bf4d023784a587613645f03891f5e2f22ae2cae 100644 (file)
@@ -19,7 +19,7 @@ class IssueCommentsController < ApplicationController
       reassign_issue(@issue)
       flash[:notice] = t ".issue_reassigned"
 
-      if current_user.has_role? @issue.assigned_role
+      if current_user.role? @issue.assigned_role
         redirect_to @issue
       else
         redirect_to issues_path(:status => "open")