Skip to content
Snippets Groups Projects
Commit 8cfb197d authored by Robert Speicher's avatar Robert Speicher
Browse files

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.
parent a0893b4d
No related branches found
No related tags found
1 merge request!1477Routing specs and cleanup
Loading
Loading
@@ -87,8 +87,6 @@ class IssuesController < ApplicationController
end
 
def destroy
return access_denied! unless can?(current_user, :admin_issue, @issue)
@issue.destroy
 
respond_to do |format|
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment