mirror of
https://github.com/bitwarden/server
synced 2026-01-05 01:53:17 +00:00
Handle Constant Expression Warning (#4613)
* Add Collections Tests * Update CollectionRepository Implementation * Test Adding And Deleting Through Replace * Format * Fix Most Test Warnings * Format * Handle Constant Expression Warning * Revert AccountRevisionDate Changes * Revert RevisionData Changes More Exactly
This commit is contained in:
@@ -60,7 +60,7 @@ public class CipherReadCanEditByIdUserIdQuery : IQuery<Cipher>
|
||||
c.UserId == _userId ||
|
||||
(
|
||||
!c.UserId.HasValue && ou.Status == OrganizationUserStatusType.Confirmed && o.Enabled &&
|
||||
(cu.CollectionId != null || cg.CollectionId != null)
|
||||
((cu == null ? (Guid?)null : cu.CollectionId) != null || (cg == null ? (Guid?)null : cg.CollectionId) != null)
|
||||
)
|
||||
) &&
|
||||
(c.UserId.HasValue || !cu.ReadOnly || !cg.ReadOnly)
|
||||
|
||||
Reference in New Issue
Block a user