Commit 8cfb197dfcad3aa0c11f7afd34e4c7bfef953d1d
1 parent
a0893b4d
Exists in
master
and in
4 other branches
Remove redundant access check for Issues#destroy
We were already calling `authorize_admin_issue!` in a before filter with the same permission checks, so this deleted check wasn't actually doing anything.
Showing
1 changed file
with
0 additions
and
2 deletions
Show diff stats
app/controllers/issues_controller.rb
@@ -87,8 +87,6 @@ class IssuesController < ApplicationController | @@ -87,8 +87,6 @@ class IssuesController < ApplicationController | ||
87 | end | 87 | end |
88 | 88 | ||
89 | def destroy | 89 | def destroy |
90 | - return access_denied! unless can?(current_user, :admin_issue, @issue) | ||
91 | - | ||
92 | @issue.destroy | 90 | @issue.destroy |
93 | 91 | ||
94 | respond_to do |format| | 92 | respond_to do |format| |