mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
Organization Service permission refactor fix (#1432)
This commit is contained in:
@ -1961,7 +1961,7 @@ namespace Bit.Core.Services
|
||||
|
||||
public async Task<Organization> UpdateOrganizationKeysAsync(Guid orgId, string publicKey, string privateKey)
|
||||
{
|
||||
if (_currentContext.ManageResetPassword(orgId))
|
||||
if (!_currentContext.ManageResetPassword(orgId))
|
||||
{
|
||||
throw new UnauthorizedAccessException();
|
||||
}
|
||||
|
Reference in New Issue
Block a user