mirror of
https://github.com/bitwarden/server
synced 2026-01-10 12:33:49 +00:00
* PM-28616 Add flag UsePhishingBlocker to dbo.Organization * PM-28616 updated as per comments from claude * PM-28616 updated ToLicense Method to copy the license file * PM-28616 allow phishing blocker to be imported via license files for self-hosted * PM-28616 updated PR comments - added more views to be refreshed * PM-28616 removed proeprty from constructor as it is not used anymore. We have moved to claims based properties
36 lines
876 B
Transact-SQL
36 lines
876 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]
|
|
FROM
|
|
[dbo].[Organization]
|
|
END
|