1
0
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:
Oscar Hinton
2021-07-07 17:08:18 +02:00
committed by GitHub
parent 898c7baf89
commit 8f0ef49d7f
2 changed files with 43 additions and 1 deletions

View File

@ -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();
}