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.
This is a great library that I was using in my project, thanks! I especially love how I can express my permissions business logic using
ac.grant('user').execute('action').where(context => SOME LOGIC).on('resource')
However I came upon a wall. I would like to use an asynchronous function in the where clause. But the library does not support that. Any idea how I can go about this?
E.g. I would like to pass a resource_id as the context, and the function would perform an asynchronous database call to ensure that the user has been associated with that resource.
The text was updated successfully, but these errors were encountered:
This is a great library that I was using in my project, thanks! I especially love how I can express my permissions business logic using
ac.grant('user').execute('action').where(context => SOME LOGIC).on('resource')
However I came upon a wall. I would like to use an asynchronous function in the
where
clause. But the library does not support that. Any idea how I can go about this?E.g. I would like to pass a
resource_id
as the context, and the function would perform an asynchronous database call to ensure that the user has been associated with that resource.The text was updated successfully, but these errors were encountered: