mirror of https://github.com/go-gitea/gitea.git
Fix ldap admin privileges update bug (#27051)
When the user does not set a username lookup condition, LDAP will get an empty string `""` for the user, hence the following code ``` if isExist, err := user_model.IsUserExist(db.DefaultContext, 0, sr.Username) ``` The user presence determination will always be nonexistent, so updates to user information will never be performed. Fix #27049pull/27368/head^2
parent
6e87a44034
commit
7ad31567cd
Loading…
Reference in New Issue