diff --git a/src/Core/Services/Implementations/CipherService.cs b/src/Core/Services/Implementations/CipherService.cs index e803f51d10..d0afb7878b 100644 --- a/src/Core/Services/Implementations/CipherService.cs +++ b/src/Core/Services/Implementations/CipherService.cs @@ -44,7 +44,7 @@ namespace Bit.Core.Services { if(!(await UserCanEditAsync(cipher, savingUserId))) { - throw new BadRequestException("Not an admin."); + throw new BadRequestException("You do not have permissions to edit this."); } cipher.UserId = savingUserId; @@ -69,7 +69,7 @@ namespace Bit.Core.Services { if(!orgAdmin && !(await UserCanEditAsync(cipher, deletingUserId))) { - throw new BadRequestException("Not an admin."); + throw new BadRequestException("You do not have permissions to delete this."); } await _cipherRepository.DeleteAsync(cipher);