1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-22 02:51:33 +01:00

SM-631: Allow creation of unassigned secrets for admins (#2838)

This commit is contained in:
Colton Hurst 2023-04-10 10:17:03 -04:00 committed by GitHub
parent 141c6862ca
commit 2b15b4b80d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ public class CreateSecretCommand : ICreateSecretCommand
var accessClient = AccessClientHelper.ToAccessClient(_currentContext.ClientType, orgAdmin);
var project = secret.Projects?.FirstOrDefault();
if (project == null)
if (project == null && !orgAdmin)
{
throw new NotFoundException();
}