1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-01 13:43:23 +01:00
bitwarden-server/src/Infrastructure.EntityFramework
Rui Tomé d6cd73cfcc
[PM-11404] Account Management: Prevent a verified user from purging their vault (#4853)
* Add check for managed user before purging account

* Rename IOrganizationRepository.GetByClaimedUserDomainAsync to GetByVerifiedUserEmailDomainAsync and refactor to return a list. Remove ManagedByOrganizationId from ProfileResponseMode. Add ManagesActiveUser to ProfileOrganizationResponseModel

* Rename the property ManagesActiveUser to UserIsManagedByOrganization

* Remove whole class #nullable enable and add it to specific places

* Remove unnecessary .ToList()

* Refactor IUserService methods GetOrganizationsManagingUserAsync and IsManagedByAnyOrganizationAsync to not return nullable objects. Update ProfileOrganizationResponseModel.UserIsManagedByOrganization to not be nullable

* Update error message when unable to purge vault for managed account
2024-10-17 16:06:32 +01:00
..
AdminConsole [PM-11404] Account Management: Prevent a verified user from purging their vault (#4853) 2024-10-17 16:06:32 +01:00
Auth Enable Nullable In Auth Repositories (#4600) 2024-08-09 09:31:06 -04:00
Billing [AC-2551] Consolidated Billing Migration (#4616) 2024-10-04 10:55:00 -04:00
Configurations [AC-10362] Remove OrganizationUser.AccessAll from code (#4622) 2024-08-26 12:03:44 +01:00
Converters Data protection for user columns at rest (#2571) 2023-01-18 13:16:57 -05:00
Models [AC-2972] AC Team ownership: Events (2/2) (#4675) 2024-08-21 09:03:26 +10:00
NotificationCenter PM-11123: Notification Status Details view (#4848) 2024-10-03 22:13:43 +02:00
Repositories [PM-12358] New Verified Organization Domain SSO Detail endpoint (#4838) 2024-10-07 14:39:57 -05:00
SecretsManager SM-1146: Secrets Manager total counts (#4200) 2024-08-08 15:12:52 +02:00
Tools [BEEEP] [SM-1060] Add missing tools table indexes to EF config (#3626) 2024-01-09 09:46:45 -06:00
Vault Handle Constant Expression Warning (#4613) 2024-08-19 09:11:42 -04:00
EfExtensions.cs [PM-2943] Enable Nullable Repositories in Unowned Files (#4549) 2024-07-24 09:48:09 -04:00
EntityFrameworkCache.cs Switch to UtcDateTime (#4710) 2024-08-29 10:27:41 -04:00
EntityFrameworkServiceCollectionExtensions.cs [AC-2551] Consolidated Billing Migration (#4616) 2024-10-04 10:55:00 -04:00
Infrastructure.EntityFramework.csproj [deps] DbOps: Update EntityFrameworkCore to v8.0.8 (#4651) 2024-08-19 14:21:16 -04:00