mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Login required to view the index page
This commit is contained in:
@@ -60,6 +60,7 @@ def check_permissions(user, application=None):
|
|||||||
|
|
||||||
### General Views
|
### General Views
|
||||||
|
|
||||||
|
@login_required
|
||||||
def index(request):
|
def index(request):
|
||||||
hrstaff = check_permissions(request.user)
|
hrstaff = check_permissions(request.user)
|
||||||
return render_to_response('hr/index.html', locals(), context_instance=RequestContext(request))
|
return render_to_response('hr/index.html', locals(), context_instance=RequestContext(request))
|
||||||
|
|||||||
Reference in New Issue
Block a user