You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.
/path/to/script.js:8
.execute('create')
^
TypeError: ac.grant(...).execute(...).on(...).grant(...).extend(...).execute is not a function
at Object.<anonymous> (/path/to/script.js:8:6)
Environment
node version: 12.15.0
role-acl version: 4.3.2
os: Ubuntu 18.04
The text was updated successfully, but these errors were encountered:
miladabc
changed the title
Extending roles does not work
Role inheritance does not work
Feb 16, 2020
extend is promise function so you need to user await before chaining with another execute on that, otherwise, you can use extendSync which is a sync function.
Bug Report
Extending roles does not work as expected.
Code sample is taken from documentation.
script.js
:Environment
The text was updated successfully, but these errors were encountered: