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
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
In have a Backend method where it's allowed options determines who is allowed to run it:
@BackendMethod({allowed: Allow.authenticated})
In the frontend, I would like to display the button only to users who can run the BackendMethod.
Today the only way I can do that, requires me to repeat myself and write:
remult.isAllowed(Allow.authenticated)
Describe the solution you'd like
A clear and concise description of what you want to happen.
I would prefer to have a single source of truth, meaning that if I defined the rule once in the backend method, I should be able to query it using something like:
remult.isAllowed(TasksController.setAll)
and that it'll take into consideration the allowed: AllowAuthenticated Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
In have a Backend method where it's
allowed
options determines who is allowed to run it:In the frontend, I would like to display the button only to users who can run the BackendMethod.
Today the only way I can do that, requires me to repeat myself and write:
Describe the solution you'd like
A clear and concise description of what you want to happen.
I would prefer to have a single source of truth, meaning that if I defined the rule once in the backend method, I should be able to query it using something like:
and that it'll take into consideration the
allowed: AllowAuthenticated
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: