mirror of https://github.com/jumpserver/jumpserver
fix user can not get permission applies bug
parent
c25cd3c005
commit
915adb2fd3
|
@ -268,7 +268,7 @@ def sudo_ldap_add(user_group, user_runas, asset_groups_select,
|
|||
ldap_conn = LDAPMgmt(LDAP_HOST_URL, LDAP_BASE_DN, LDAP_ROOT_DN, LDAP_ROOT_PW)
|
||||
else:
|
||||
return
|
||||
|
||||
|
||||
assets = []
|
||||
cmds = []
|
||||
user_runas = user_runas.split(',')
|
||||
|
@ -751,7 +751,7 @@ def perm_apply_log(request, offset):
|
|||
header_title, path1, path2 = u'权限申请记录', u'权限管理', u'申请记录'
|
||||
keyword = request.GET.get('keyword', '')
|
||||
user_id = get_session_user_info(request)[0]
|
||||
username = User.objects.get(id=user_id).name
|
||||
username = User.objects.get(id=user_id).username
|
||||
dept_name = get_session_user_info(request)[4]
|
||||
status_dic = {'online': 0, 'offline': 1}
|
||||
status = status_dic[offset]
|
||||
|
|
Loading…
Reference in New Issue