mirror of
https://github.com/bitwarden/server.git
synced 2025-07-17 23:50:58 -05:00
[SM-706] Extract Authorization From Create/Update Secret Commands (#2896)
* Extract authorization from commands * Swap to request model validation. * Swap to pattern detection
This commit is contained in:
@ -4,5 +4,5 @@ namespace Bit.Core.SecretsManager.Commands.Secrets.Interfaces;
|
||||
|
||||
public interface ICreateSecretCommand
|
||||
{
|
||||
Task<Secret> CreateAsync(Secret secret, Guid userId);
|
||||
Task<Secret> CreateAsync(Secret secret);
|
||||
}
|
||||
|
@ -4,5 +4,5 @@ namespace Bit.Core.SecretsManager.Commands.Secrets.Interfaces;
|
||||
|
||||
public interface IUpdateSecretCommand
|
||||
{
|
||||
Task<Secret> UpdateAsync(Secret secret, Guid userId);
|
||||
Task<Secret> UpdateAsync(Secret secret);
|
||||
}
|
||||
|
Reference in New Issue
Block a user