Permalink
Browse files

Reuse issue_editor_required decorator for close() view.

git-svn-id: http://rietveld.googlecode.com/svn/trunk@416 e30e9e8f-1b4c-0410-881d-6f13584adfe0
  • Loading branch information...
albrecht.andi
albrecht.andi committed May 12, 2009
1 parent 90cbf57 commit 4530d0e210022227f9be9fd359ce42c2525760d5
Showing with 1 addition and 4 deletions.
  1. +1 −4 codereview/views.py
@@ -1492,12 +1492,9 @@ def delete(request):
@post_required
@issue_required
@issue_editor_required
def close(request):
"""/<issue>/close - Close an issue."""
if request.issue.owner != request.user:
if not IS_DEV:
return HttpResponse('Login required', status=401)
issue = request.issue
issue.closed = True
if request.method == 'POST':

0 comments on commit 4530d0e

Please sign in to comment.