-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
Steps to reproduce
- Create boot script: /lb3app/server/boot/role.js
module.exports = async function(app) {
var Role = app.models.Role;
Role.registerResolver('testrole', function(role, ctx, cb) {
console.log('testrole');
process.nextTick(function() {
cb(null, true);
});
});
};Add it to a model json "acls" definition:
{
"accessType": "EXECUTE",
"principalType": "ROLE",
"principalId": "$unauthenticated",
"permission": "DENY",
"property": "create"
},
{
"accessType": "EXECUTE",
"principalType": "ROLE",
"principalId": "testrole",
"permission": "ALLOW",
"property": "create"
}Current Behavior
Running a test to create a resource on the model returns 401 error.
Expected Behavior
Running a test to create a resource on the model should be successful with 200 status.
Reactions are currently unavailable