mirror of
https://github.com/goharbor/harbor
synced 2025-04-13 20:34:58 +00:00
Merge pull request #5612 from stonezdj/fix_ldap_group_admin_dn
Fix issue ldap_group_admin_dn doesn't take effect(master)
This commit is contained in:
commit
2e4295ba52
|
@ -116,6 +116,9 @@ func (ua *UserAPI) Get() {
|
|||
ua.CustomAbort(http.StatusInternalServerError, "Internal error.")
|
||||
}
|
||||
u.Password = ""
|
||||
if ua.userID == ua.currentUserID {
|
||||
u.HasAdminRole = ua.SecurityCtx.IsSysAdmin()
|
||||
}
|
||||
ua.Data["json"] = u
|
||||
ua.ServeJSON()
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user