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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user