-
-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Description
var rbac = new RBAC({
roles: ["superadmin", "admin", "user", "guest"],
permissions: {
user: ["create", "delete"],
password: ["change", "forgot"],
article: ["create"],
rbac: ["update"],
},
grants: {
guest: ["create_user", "forgot_password"],
user: ["change_password"],
admin: ["user", "delete_user", "update_rbac"],
superadmin: ["admin"],
},
});
await rbac.init();
let permission = await rbac.can("admin", "create", "artical")
Get permission as always false
I don't know what is missing the above code.
Metadata
Metadata
Assignees
Labels
No labels