mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 16:42:50 -05:00
org totp and storage flags
This commit is contained in:
@ -6,7 +6,11 @@ SELECT
|
||||
CASE
|
||||
WHEN C.[UserId] IS NOT NULL OR OU.[AccessAll] = 1 OR CU.[ReadOnly] = 0 OR G.[AccessAll] = 1 OR CG.[ReadOnly] = 0 THEN 1
|
||||
ELSE 0
|
||||
END [Edit]
|
||||
END [Edit],
|
||||
CASE
|
||||
WHEN C.[UserId] IS NULL AND O.[UseTotp] = 1 THEN 1
|
||||
ELSE 0
|
||||
END [OrganizationUseTotp]
|
||||
FROM
|
||||
[dbo].[CipherDetails](@UserId) C
|
||||
LEFT JOIN
|
||||
|
@ -11,7 +11,8 @@
|
||||
@RevisionDate DATETIME2(7),
|
||||
@FolderId UNIQUEIDENTIFIER,
|
||||
@Favorite BIT,
|
||||
@Edit BIT -- not used
|
||||
@Edit BIT, -- not used
|
||||
@OrganizationUseTotp BIT -- not used
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
|
@ -11,7 +11,8 @@
|
||||
@RevisionDate DATETIME2(7),
|
||||
@FolderId UNIQUEIDENTIFIER,
|
||||
@Favorite BIT,
|
||||
@Edit BIT -- not used
|
||||
@Edit BIT, -- not used
|
||||
@OrganizationUseTotp BIT -- not used
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
|
@ -9,6 +9,7 @@
|
||||
@MaxCollections SMALLINT,
|
||||
@UseGroups BIT,
|
||||
@UseDirectory BIT,
|
||||
@UseTotp BIT,
|
||||
@Storage BIGINT,
|
||||
@MaxStorageGb SMALLINT,
|
||||
@StripeCustomerId VARCHAR(50),
|
||||
@ -32,6 +33,7 @@ BEGIN
|
||||
[MaxCollections],
|
||||
[UseGroups],
|
||||
[UseDirectory],
|
||||
[UseTotp],
|
||||
[Storage],
|
||||
[MaxStorageGb],
|
||||
[StripeCustomerId],
|
||||
@ -52,6 +54,7 @@ BEGIN
|
||||
@MaxCollections,
|
||||
@UseGroups,
|
||||
@UseDirectory,
|
||||
@UseTotp,
|
||||
@Storage,
|
||||
@MaxStorageGb,
|
||||
@StripeCustomerId,
|
||||
|
@ -9,6 +9,7 @@
|
||||
@MaxCollections SMALLINT,
|
||||
@UseGroups BIT,
|
||||
@UseDirectory BIT,
|
||||
@UseTotp BIT,
|
||||
@Storage BIGINT,
|
||||
@MaxStorageGb SMALLINT,
|
||||
@StripeCustomerId VARCHAR(50),
|
||||
@ -33,6 +34,7 @@ BEGIN
|
||||
[MaxCollections] = @MaxCollections,
|
||||
[UseGroups] = @UseGroups,
|
||||
[UseDirectory] = @UseDirectory,
|
||||
[UseTotp] = @UseTotp,
|
||||
[Storage] = @Storage,
|
||||
[MaxStorageGb] = @MaxStorageGb,
|
||||
[StripeCustomerId] = @StripeCustomerId,
|
||||
|
@ -9,6 +9,7 @@
|
||||
[MaxCollections] SMALLINT NULL,
|
||||
[UseGroups] BIT NOT NULL,
|
||||
[UseDirectory] BIT NOT NULL,
|
||||
[UseTotp] BIT NOT NULL,
|
||||
[Storage] BIGINT NULL,
|
||||
[MaxStorageGb] SMALLINT NULL,
|
||||
[StripeCustomerId] VARCHAR (50) NULL,
|
||||
|
@ -7,8 +7,10 @@ SELECT
|
||||
O.[Enabled],
|
||||
O.[UseGroups],
|
||||
O.[UseDirectory],
|
||||
O.[UseTotp],
|
||||
O.[Seats],
|
||||
O.[MaxCollections],
|
||||
O.[MaxStorageGb],
|
||||
OU.[Key],
|
||||
OU.[Status],
|
||||
OU.[Type]
|
||||
|
Reference in New Issue
Block a user