mirror of
https://github.com/bitwarden/server
synced 2026-02-12 22:44:00 +00:00
[PM-25106] Refactor Misleading Stored Procedure/Repository Language (#6890)
* Begin migration to appropriately named sprocs * Update method and parameter names * Remove incorrect change * Changes EF to match collection type comparison * Adds integration test verifying excluded collections * Changes EF to match collection type comparison * Fix whitespacing * Fix dedented if
This commit is contained in:
@@ -303,7 +303,7 @@ public class CollectionRepository : Repository<Core.Entities.Collection, Collect
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<ICollection<CollectionAdminDetails>> GetManyByOrganizationIdWithPermissionsAsync(
|
||||
public async Task<ICollection<CollectionAdminDetails>> GetManySharedByOrganizationIdWithPermissionsAsync(
|
||||
Guid organizationId, Guid userId, bool includeAccessRelationships)
|
||||
{
|
||||
using (var scope = ServiceScopeFactory.CreateScope())
|
||||
|
||||
@@ -62,7 +62,7 @@ public class CollectionAdminDetailsQuery : IQuery<CollectionAdminDetails>
|
||||
{
|
||||
baseCollectionQuery = baseCollectionQuery.Where(x =>
|
||||
x.c.OrganizationId == _organizationId &&
|
||||
x.c.Type != CollectionType.DefaultUserCollection);
|
||||
x.c.Type == CollectionType.SharedCollection);
|
||||
}
|
||||
else if (_collectionId.HasValue)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user