diff --git a/src/ui/auth/ldap/ldap.go b/src/ui/auth/ldap/ldap.go index 6b8942176..1fa2d0f5a 100644 --- a/src/ui/auth/ldap/ldap.go +++ b/src/ui/auth/ldap/ldap.go @@ -98,6 +98,7 @@ func (l *Auth) Authenticate(m models.AuthModel) (*models.User, error) { return nil, err } u.UserID = currentUser.UserID + u.HasAdminRole = currentUser.HasAdminRole } else { userID, err := ldapUtils.ImportUser(ldapUsers[0]) if err != nil {