X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/088ccd2d8f8dd892ea94a68c288cebe5c9f51d5c..20e03c73bb7755dec0c63a6beb40e747496d6e7b:/app/controllers/issue_comments_controller.rb 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")