Commit 8cfb197dfcad3aa0c11f7afd34e4c7bfef953d1d

Authored by Robert Speicher
1 parent a0893b4d

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 87 end
88 88  
89 89 def destroy
90   - return access_denied! unless can?(current_user, :admin_issue, @issue)
91   -
92 90 @issue.destroy
93 91  
94 92 respond_to do |format|
... ...