1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

Refactor permission checks in OrganizationsService to use currentContext (#1420)

This commit is contained in:
Oscar Hinton
2021-07-01 14:31:05 +02:00
committed by GitHub
parent 43f7271147
commit a733257bc6
4 changed files with 51 additions and 79 deletions

View File

@ -552,7 +552,7 @@ namespace Bit.Api.Controllers
throw new UnauthorizedAccessException();
}
var org = await _organizationService.UpdateOrganizationKeysAsync(user.Id, new Guid(id), model.PublicKey, model.EncryptedPrivateKey);
var org = await _organizationService.UpdateOrganizationKeysAsync(new Guid(id), model.PublicKey, model.EncryptedPrivateKey);
return new OrganizationKeysResponseModel(org);
}
}