From 54de2db9affe02bd77be6cefc909fa8f11550ad8 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 30 Aug 2017 21:37:58 -0400 Subject: [PATCH] write is also included with accessall --- src/Sql/dbo/Stored Procedures/Collection_ReadByUserId.sql | 2 ++ util/Setup/DbScripts/2017-08-30_00_CollectionWriteOnly.sql | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Sql/dbo/Stored Procedures/Collection_ReadByUserId.sql b/src/Sql/dbo/Stored Procedures/Collection_ReadByUserId.sql index f37d50d2df..2b89ee2907 100644 --- a/src/Sql/dbo/Stored Procedures/Collection_ReadByUserId.sql +++ b/src/Sql/dbo/Stored Procedures/Collection_ReadByUserId.sql @@ -33,6 +33,8 @@ BEGIN ) AND ( @WriteOnly = 0 + OR OU.[AccessAll] = 1 + OR G.[AccessAll] = 1 OR CU.[ReadOnly] = 0 OR CG.[ReadOnly] = 0 ) diff --git a/util/Setup/DbScripts/2017-08-30_00_CollectionWriteOnly.sql b/util/Setup/DbScripts/2017-08-30_00_CollectionWriteOnly.sql index 9f9ee3a557..f05f096352 100644 --- a/util/Setup/DbScripts/2017-08-30_00_CollectionWriteOnly.sql +++ b/util/Setup/DbScripts/2017-08-30_00_CollectionWriteOnly.sql @@ -51,6 +51,8 @@ BEGIN ) AND ( @WriteOnly = 0 + OR OU.[AccessAll] = 1 + OR G.[AccessAll] = 1 OR CU.[ReadOnly] = 0 OR CG.[ReadOnly] = 0 )