mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 16:42:50 -05:00
[PM-10361] Remove Group.AccessAll from code (#4614)
* Remove Group.AccessAll from code * Add shadow property config and migration
This commit is contained in:
@ -102,6 +102,9 @@ public class DatabaseContext : DbContext
|
||||
var eOrganizationDomain = builder.Entity<OrganizationDomain>();
|
||||
var aWebAuthnCredential = builder.Entity<WebAuthnCredential>();
|
||||
|
||||
// Shadow property configurations
|
||||
eGroup.Property<bool>("AccessAll").HasDefaultValue(false);
|
||||
|
||||
eCipher.Property(c => c.Id).ValueGeneratedNever();
|
||||
eCollection.Property(c => c.Id).ValueGeneratedNever();
|
||||
eEmergencyAccess.Property(c => c.Id).ValueGeneratedNever();
|
||||
|
@ -3,6 +3,9 @@ using Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Repositories.Queries;
|
||||
|
||||
/// <summary>
|
||||
/// Returns all Collections that a user is assigned to in an organization, either directly or via a group.
|
||||
/// </summary>
|
||||
public class CollectionsReadByOrganizationIdUserIdQuery : IQuery<Collection>
|
||||
{
|
||||
private readonly Guid? _organizationId;
|
||||
|
Reference in New Issue
Block a user