mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
b829812a3f
* Add Organization.FlexibleCollections property and column * Add new property to OrganizationAbility * Add SQL and EF migrations
32 lines
793 B
Transact-SQL
32 lines
793 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],
|
|
[FlexibleCollections]
|
|
FROM
|
|
[dbo].[Organization]
|
|
END
|
|
GO
|