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.
This commit is contained in:
parent
a0893b4d58
commit
8cfb197dfc
|
@ -87,8 +87,6 @@ class IssuesController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
return access_denied! unless can?(current_user, :admin_issue, @issue)
|
|
||||||
|
|
||||||
@issue.destroy
|
@issue.destroy
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
Loading…
Reference in a new issue