mirror of https://github.com/jumpserver/jumpserver
修改bug
parent
a25b2df453
commit
d4f40feebf
|
@ -264,7 +264,8 @@ def index(request):
|
|||
@admin_required
|
||||
def showUser(request):
|
||||
"""查看所有用户"""
|
||||
|
||||
info = ''
|
||||
error = ''
|
||||
if request.method == 'POST':
|
||||
selected_user = request.REQUEST.getlist('selected')
|
||||
if selected_user:
|
||||
|
@ -290,6 +291,7 @@ def showUser(request):
|
|||
|
||||
if not error:
|
||||
info = '用户删除成功'
|
||||
return HttpResponseRedirect('/showUser/')
|
||||
|
||||
else:
|
||||
if request.session.get('admin') == 2:
|
||||
|
|
Loading…
Reference in New Issue