Two character change, some API calls with sub resources and primary resources weren't working, should allow either the sub resource or the main resource to trigger allowance.

This commit is contained in:
mike12345567 2021-02-26 10:06:02 +00:00
parent 78286ae514
commit 229498332e
1 changed files with 1 additions and 1 deletions

View File

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