mirror of
https://github.com/go-gitea/gitea.git
synced 2025-01-03 14:57:55 -05: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 {
|
||||
ua.Mode = maxAccessMode(ua.Mode, mode)
|
||||
} else {
|
||||
ua = &userAccess{User: user, Mode: mode}
|
||||
accessMap[user.ID] = ua
|
||||
accessMap[user.ID] = &userAccess{User: user, Mode: mode}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user