diff options
author | CaiCandong <50507092+CaiCandong@users.noreply.github.com> | 2023-10-01 19:32:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-01 11:32:12 +0000 |
commit | 7ad31567cdc8206e0080b851a9b880729266b084 (patch) | |
tree | cbfbcc3f5d01ae4537420f80f440f6a3ad116e47 /README_ZH.md | |
parent | 6e87a44034af3cfef1ceed3d653b3851ec2c1118 (diff) | |
download | gitea-7ad31567cdc8206e0080b851a9b880729266b084.tar.gz gitea-7ad31567cdc8206e0080b851a9b880729266b084.zip |
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 #27049
Diffstat (limited to 'README_ZH.md')
0 files changed, 0 insertions, 0 deletions