mirror of
https://github.com/bitwarden/server
synced 2026-01-17 07:53:36 +00:00
* Adding new item to organization license * fixing whitespace issues * fixing missing comment * fixing merge conflicts * merge fix * db merge fixes * fix * Updating SM to Sm, and adding more view refreshes * fixing merge conflicts * Redoing migration * Update OrganizationLicense.cs * Update OrganizationLicense.cs * fixes * fixes * fixing db issues * fix * rearranging sql after merge conflicts * Merge conflicts with dbscripts are fixed, adding missing usedisableSMadsForUsers where needed * removing incorrect merge fix * fixes * adding feature flag to disable sm ads --------- Co-authored-by: Conner Turnbull <cturnbull@bitwarden.com>
37 lines
914 B
Transact-SQL
37 lines
914 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],
|
|
[UseAutomaticUserConfirmation],
|
|
[UsePhishingBlocker],
|
|
[UseDisableSmAdsForUsers]
|
|
FROM
|
|
[dbo].[Organization]
|
|
END
|