Skip to content

Commit

Permalink
hacked rietveld to enforce login even to view issues
Browse files Browse the repository at this point in the history
  • Loading branch information
skogsbaer committed Mar 11, 2015
1 parent bd67594 commit e5593f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rietveld/examples/rietveld/codereview/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ def admin_wrapper(request, *args, **kwds):
def issue_required(func):
"""Decorator that processes the issue_id handler argument."""

@login_required
def issue_wrapper(request, issue_id, *args, **kwds):
issue = models.Issue.get_by_id(int(issue_id))
if issue is None:
Expand Down Expand Up @@ -864,7 +865,7 @@ def _paginate_issues(page_url,
params.update(extra_template_params)
return respond(request, template, params)


@login_required
def all(request):
"""/all - Show a list of up to DEFAULT_LIMIT recent issues."""
closed = request.GET.get('closed') or ''
Expand Down

0 comments on commit e5593f6

Please sign in to comment.