mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 09:09:02 +00:00
even tighter
This commit is contained in:
parent
10de9b6b89
commit
7d17aad805
|
@ -180,8 +180,7 @@ func updateUserAccess(accessMap map[int64]*userAccess, user *User, mode AccessMo
|
||||||
if ua, ok := accessMap[user.ID]; ok {
|
if ua, ok := accessMap[user.ID]; ok {
|
||||||
ua.Mode = maxAccessMode(ua.Mode, mode)
|
ua.Mode = maxAccessMode(ua.Mode, mode)
|
||||||
} else {
|
} else {
|
||||||
ua = &userAccess{User: user, Mode: mode}
|
accessMap[user.ID] = &userAccess{User: user, Mode: mode}
|
||||||
accessMap[user.ID] = ua
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue