1
0
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:
Kyle Spearrin
2017-07-07 14:08:30 -04:00
parent 43262e577c
commit fbc189544b
20 changed files with 97 additions and 17 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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]