From 5ea2ad9010377c1047946ae065bd1faa8bdbab86 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 26 Feb 2021 10:03:26 +0000 Subject: [PATCH] Fix permissions when fetching enriched rows --- packages/server/src/utilities/security/permissions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/utilities/security/permissions.js b/packages/server/src/utilities/security/permissions.js index 083de730b5..e6028ac2da 100644 --- a/packages/server/src/utilities/security/permissions.js +++ b/packages/server/src/utilities/security/permissions.js @@ -156,7 +156,7 @@ exports.doesHaveResourcePermission = ( break } } - return foundMain && foundSub + return foundMain || foundSub } exports.doesHaveBasePermission = (permType, permLevel, permissionIds) => {