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:
parent
141c6862ca
commit
2b15b4b80d
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user