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:
parent
78286ae514
commit
229498332e
|
@ -156,7 +156,7 @@ exports.doesHaveResourcePermission = (
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return foundMain && foundSub
|
return foundMain || foundSub
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.doesHaveBasePermission = (permType, permLevel, permissionIds) => {
|
exports.doesHaveBasePermission = (permType, permLevel, permissionIds) => {
|
||||||
|
|
Loading…
Reference in New Issue