add the @login_required(login_url='/login')

pull/26/head
liuzheng712 2015-11-02 15:51:18 +08:00
parent 6583b0f530
commit ba8ed23292
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@
# import random
# from Crypto.PublicKey import RSA
import uuid as uuid_r
from django.contrib.auth.decorators import login_required
from django.db.models import Q
from django.template import RequestContext
@ -212,6 +213,7 @@ def group_edit(request):
# return HttpResponseRedirect('/juser/group_list/')
@login_required(login_url='/login')
@require_role(role='super')
def user_add(request):
error = ''