mirror of
https://github.com/bitwarden/server.git
synced 2024-12-05 14:23:30 +01:00
71def39015
* feat: Update OrganizationAbility with LimitCollectionCreationDeletion, refs AC-1809 * feat: Update OrganizationAbility constructor usage to pass feature flag state, refs AC-1809 * feat: Update EF retrieval of org abilities to include new property from database, refs AC-1809 * feat: Update sproc to include LimitCollectionCreationDeletion property and create migration, refs AC-1809 * feat: Inject ApplicationCache into handler accessing LimitCollectionCreationDeletion, refs AC-1809 * feat: remove collection management settings from CurrentContextOrganization and update tests, refs AC-1809 * feat: add AllowAdminAccessToAllCollectionItems to OrganizationAbility pipeline, refs AC-1809 --------- Co-authored-by: Thomas Rittson <trittson@bitwarden.com> Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
31 lines
762 B
Transact-SQL
31 lines
762 B
Transact-SQL
--Update stored procedure to include LimitCollectionCreationDeletion property
|
|
CREATE OR ALTER PROCEDURE [dbo].[Organization_ReadAbilities]
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT ON
|
|
|
|
SELECT
|
|
[Id],
|
|
[UseEvents],
|
|
[Use2fa],
|
|
CASE
|
|
WHEN [Use2fa] = 1 AND [TwoFactorProviders] IS NOT NULL AND [TwoFactorProviders] != '{}' THEN
|
|
1
|
|
ELSE
|
|
0
|
|
END AS [Using2fa],
|
|
[UsersGetPremium],
|
|
[UseCustomPermissions],
|
|
[UseSso],
|
|
[UseKeyConnector],
|
|
[UseScim],
|
|
[UseResetPassword],
|
|
[UsePolicies],
|
|
[Enabled],
|
|
[LimitCollectionCreationDeletion],
|
|
[AllowAdminAccessToAllCollectionItems]
|
|
FROM
|
|
[dbo].[Organization]
|
|
END
|
|
GO
|