Skip to content

Commit 07c7e76

Browse files
Changes EF to match collection type comparison
1 parent bef2023 commit 07c7e76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Infrastructure.EntityFramework/AdminConsole/Repositories/OrganizationUserRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ join ou in userIdEntities on gu.OrganizationUserId equals ou.Id
472472
collections = (await (from cu in dbContext.CollectionUsers
473473
join ou in userIdEntities on cu.OrganizationUserId equals ou.Id
474474
join c in dbContext.Collections on cu.CollectionId equals c.Id
475-
where c.Type != CollectionType.DefaultUserCollection
475+
where c.Type == CollectionType.SharedCollection
476476
select cu).ToListAsync())
477477
.GroupBy(c => c.OrganizationUserId).ToList();
478478
}

src/Infrastructure.EntityFramework/Repositories/Queries/CollectionAdminDetailsQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ where cg.Manage
6262
{
6363
baseCollectionQuery = baseCollectionQuery.Where(x =>
6464
x.c.OrganizationId == _organizationId &&
65-
x.c.Type != CollectionType.DefaultUserCollection);
65+
x.c.Type == CollectionType.SharedCollection);
6666
}
6767
else if (_collectionId.HasValue)
6868
{

0 commit comments

Comments
 (0)