OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0893b4
)
Remove redundant access check for Issues#destroy
author
Robert Speicher
<rspeicher@gmail.com>
Fri, 10 Aug 2012 22:51:07 +0000
(18:51 -0400)
committer
Robert Speicher
<rspeicher@gmail.com>
Sun, 16 Sep 2012 14:06:29 +0000
(10:06 -0400)
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.
app/controllers/issues_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/issues_controller.rb
b/app/controllers/issues_controller.rb
index
9be37ca
..
1d78a6d
100644
(file)
--- a/
app/controllers/issues_controller.rb
+++ b/
app/controllers/issues_controller.rb
@@
-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|