1
0
mirror of https://github.com/bitwarden/server.git synced 2025-03-02 04:11:04 +01:00
bitwarden-server/src/Infrastructure.Dapper
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/Repositories [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/Repositories [AC-2551] Consolidated Billing Migration (#4616) 2024-10-04 10:55:00 -04:00
NotificationCenter/Repositories 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/Repositories [SM-501] Add support for revoking access tokens (#2692) 2023-02-16 10:51:02 +01:00
Tools Create DataTableBuilder (#4608) 2024-09-05 20:44:45 -04:00
Vault Set column type for externalId (#4566) 2024-07-29 15:41:55 +02:00
DapperHelpers.cs Create DataTableBuilder (#4608) 2024-09-05 20:44:45 -04:00
DapperServiceCollectionExtensions.cs [AC-2551] Consolidated Billing Migration (#4616) 2024-10-04 10:55:00 -04:00
Infrastructure.Dapper.csproj [deps] DbOps: Update Dapper to v2.1.35 (#3947) 2024-04-01 09:46:58 -04:00