Browse Source

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.

master
mike12345567 6 years ago
parent
commit
229498332e
  1. 2
      packages/server/src/utilities/security/permissions.js

2
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) => {

Loading…
Cancel
Save