删除没用的

pull/6/head
guanghongwei 10 years ago
parent e717fad762
commit 18b6e25cf3

@ -156,7 +156,6 @@ def require_login(func):
def require_super_user(func):
def _deco(request, *args, **kwargs):
if request.session.get('role_id', 0) != 2:
print "##########%s" % request.session.get('role_id', 0)
return HttpResponseRedirect('/')
return func(request, *args, **kwargs)
return _deco

Loading鈥
Cancel
Save