Fixing an issue discovered by test case.

This commit is contained in:
mike12345567 2021-02-26 10:19:06 +00:00
parent a778d97118
commit 491eb00ea1
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ exports.doesHaveResourcePermission = (
) => {
// set foundSub to not subResourceId, incase there is no subResource
let foundMain = false,
foundSub = !subResourceId
foundSub = false
for (let [resource, level] of Object.entries(permissions)) {
const levels = getAllowedLevels(level)
if (resource === resourceId && levels.indexOf(permLevel) !== -1) {