mirror of https://github.com/jumpserver/jumpserver
pull/2/head
parent
6ae84b3334
commit
1b08c6ea88
|
@ -663,7 +663,7 @@ def chgSudo(request):
|
|||
ori_cmds.extend(cmds)
|
||||
new_cmds = list(set(ori_cmds))
|
||||
else:
|
||||
new_cmds = list(set(ori_cmds) - cmds)
|
||||
new_cmds = list(set(ori_cmds) - set(cmds))
|
||||
|
||||
l.modify(user_dn, {'sudoCommand': new_cmds})
|
||||
msg = '修改sudo命令成功'
|
||||
|
|
Loading…
Reference in New Issue