Fix permissions when fetching enriched rows

This commit is contained in:
Andrew Kingston 2021-02-26 10:03:26 +00:00
parent 0988f27f15
commit 5ea2ad9010
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ exports.doesHaveResourcePermission = (
break break
} }
} }
return foundMain && foundSub return foundMain || foundSub
} }
exports.doesHaveBasePermission = (permType, permLevel, permissionIds) => { exports.doesHaveBasePermission = (permType, permLevel, permissionIds) => {