X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a11924021629cfb80b68ec743a0eca9a2c1616e4..3734cff2bab6dd2e6527d991bf70cf9d52f026d4:/app/controllers/issue_comments_controller.rb?ds=sidebyside diff --git a/app/controllers/issue_comments_controller.rb b/app/controllers/issue_comments_controller.rb index 7edef184e..5bf4d0237 100644 --- a/app/controllers/issue_comments_controller.rb +++ b/app/controllers/issue_comments_controller.rb @@ -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")