mirror of
https://github.com/bitwarden/server
synced 2026-01-26 22:33:31 +00:00
Changes EF to match collection type comparison
This commit is contained in:
@@ -359,7 +359,7 @@ public class OrganizationUserRepository : Repository<Core.Entities.OrganizationU
|
||||
var query = from ou in dbContext.OrganizationUsers
|
||||
join cu in dbContext.CollectionUsers on ou.Id equals cu.OrganizationUserId
|
||||
join c in dbContext.Collections on cu.CollectionId equals c.Id
|
||||
where ou.Id == id && c.Type != CollectionType.DefaultUserCollection
|
||||
where ou.Id == id && c.Type == CollectionType.SharedCollection
|
||||
select cu;
|
||||
var collections = await query.Select(cu => new CollectionAccessSelection
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user