mirror of
https://github.com/bitwarden/server.git
synced 2025-05-18 01:55:37 -05:00

* DBO changes * Add migration scripts * wip * wip * wip * add EF migrations * run dotnet format * cleanup * revert business logic * wip * add update statement to mssql migration script * fix user service tests * increment license, add UseOrganizationDomains * add migration helpers to seed initial value from UseSso * clean up * cleanup * fix mssql migrations * fix license version and test * fix file names * fix license json * add missing property to license test * rename file * fix migrations * fix migration * add WHERE to helper scripts * separate schema/data migrations * restore comment * Merge conflict * fix migrations * add new property to migration * wip * fix file names * fix file name
34 lines
806 B
Transact-SQL
34 lines
806 B
Transact-SQL
CREATE 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],
|
|
[LimitCollectionCreation],
|
|
[LimitCollectionDeletion],
|
|
[AllowAdminAccessToAllCollectionItems],
|
|
[UseRiskInsights],
|
|
[LimitItemDeletion],
|
|
[UseOrganizationDomains],
|
|
[UseAdminSponsoredFamilies]
|
|
FROM
|
|
[dbo].[Organization]
|
|
END
|