mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
idGuid variable
This commit is contained in:
parent
a5630f8af4
commit
c4a6b3b7ef
@ -420,8 +420,9 @@ namespace Bit.Api.Controllers
|
|||||||
{
|
{
|
||||||
ValidateAttachment();
|
ValidateAttachment();
|
||||||
|
|
||||||
|
var idGuid = new Guid(id);
|
||||||
var userId = _userService.GetProperUserId(User).Value;
|
var userId = _userService.GetProperUserId(User).Value;
|
||||||
var cipher = await _cipherRepository.GetDetailsByIdAsync(new Guid(id));
|
var cipher = await _cipherRepository.GetDetailsByIdAsync(idGuid);
|
||||||
if(cipher == null || !cipher.OrganizationId.HasValue ||
|
if(cipher == null || !cipher.OrganizationId.HasValue ||
|
||||||
!_currentContext.OrganizationAdmin(cipher.OrganizationId.Value))
|
!_currentContext.OrganizationAdmin(cipher.OrganizationId.Value))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user