Fix error handling in StartRadiusServer()

This commit is contained in:
Yang Luo
2023-09-25 20:55:02 +08:00
parent aab6a799fe
commit fba0866cd6
3 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ func GetFilteredUsers(m *ldap.Message) (filteredUsers []*object.User, code int)
hasPermission, err := object.CheckUserPermission(requestUserId, userId, true, "en")
if !hasPermission {
log.Printf("ErrMsg = %v", err.Error())
log.Printf("err = %v", err.Error())
return nil, ldap.LDAPResultInsufficientAccessRights
}