mirror of
https://github.com/bitwarden/server.git
synced 2025-07-08 03:15:07 -05:00
idGuid variable
This commit is contained in:
@ -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))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user