Revert "ACL check was broken, addToEveryAction should come first (#204)"

This reverts commit b0faecfa75.
This commit is contained in:
jamesread
2023-12-21 01:22:18 +00:00
parent b0faecfa75
commit 00927f3ba3

View File

@@ -111,11 +111,11 @@ func buildUserAcls(cfg *config.Config, user *AuthenticatedUser) {
}
func isACLRelevant(cfg *config.Config, actionAcls []string, acl config.AccessControlList, user *AuthenticatedUser) bool {
if acl.AddToEveryAction {
return true
if !slices.Contains(user.acls, acl.Name) {
return false
}
if slices.Contains(user.acls, acl.Name) {
if acl.AddToEveryAction {
return true
}