X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/efd50cd529990069dc1ca95f66ec6f61471fe29d..5912a8011b05f36077f0147cdf7403a8e7626216:/app/controllers/issue_comments_controller.rb diff --git a/app/controllers/issue_comments_controller.rb b/app/controllers/issue_comments_controller.rb index 0e4a7079e..3a6b357f9 100644 --- a/app/controllers/issue_comments_controller.rb +++ b/app/controllers/issue_comments_controller.rb @@ -22,15 +22,6 @@ class IssueCommentsController < ApplicationController params.require(:issue_comment).permit(:body) end - def deny_access(_exception) - if current_user - flash[:error] = t("application.require_moderator_or_admin.not_a_moderator_or_admin") - redirect_to root_path - else - super - end - end - # This sort of assumes there are only two roles def reassign_issue(issue) role = (Issue::ASSIGNED_ROLES - [issue.assigned_role]).first