1
0
mirror of https://github.com/bitwarden/server synced 2025-12-25 20:53:16 +00:00

[PM-25675] - fix NormalCipherPermissions.CanDelete (#6666)

* fix NormalCipherPermissions.CanDelete

* fix test

* fix tests
This commit is contained in:
Jordan Aasen
2025-12-08 09:21:09 -08:00
committed by GitHub
parent 01da3c91a7
commit d687e8a84b
3 changed files with 6 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ public class NormalCipherPermissions
throw new Exception("Cipher needs to belong to a user or an organization.");
}
if (user.Id == cipherDetails.UserId)
if (cipherDetails.OrganizationId == null && user.Id == cipherDetails.UserId)
{
return true;
}