diff --git a/src/Api/Vault/AuthorizationHandlers/Collections/CollectionAuthorizationHandler.cs b/src/Api/Vault/AuthorizationHandlers/Collections/CollectionAuthorizationHandler.cs index 17e02d4628..b3e15e281f 100644 --- a/src/Api/Vault/AuthorizationHandlers/Collections/CollectionAuthorizationHandler.cs +++ b/src/Api/Vault/AuthorizationHandlers/Collections/CollectionAuthorizationHandler.cs @@ -77,10 +77,10 @@ public class CollectionAuthorizationHandler : BulkAuthorizationHandler resources, CurrentContextOrganization org) { - // Owners, Admins, Providers, and users with DeleteAnyCollection or EditAnyCollection permission can always delete collections + // Owners, Admins, Providers, and users with DeleteAnyCollection permission can always delete collections if ( org.Type is OrganizationUserType.Owner or OrganizationUserType.Admin || - org.Permissions.DeleteAnyCollection || org.Permissions.EditAnyCollection || + org.Permissions is { DeleteAnyCollection: true } || await _currentContext.ProviderUserForOrgAsync(org.Id)) { context.Succeed(requirement);