mirror of
https://github.com/correl/codereview.git
synced 2024-11-23 19:19:50 +00:00
Made the dashboard index (repo list) require a login
This commit is contained in:
parent
a364b878b2
commit
7010fa8b8a
1 changed files with 2 additions and 0 deletions
|
@ -1,7 +1,9 @@
|
||||||
from django.shortcuts import render_to_response
|
from django.shortcuts import render_to_response
|
||||||
from django.template import RequestContext
|
from django.template import RequestContext
|
||||||
|
from django.contrib.auth.decorators import permission_required
|
||||||
from codereview.dashboard.models import Repository
|
from codereview.dashboard.models import Repository
|
||||||
|
|
||||||
|
@permission_required('dashboard.browse')
|
||||||
def index(request):
|
def index(request):
|
||||||
""" List available repositories
|
""" List available repositories
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue