Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define check_permissions per act #8

Open
Wardormeur opened this issue Feb 9, 2017 · 0 comments
Open

Define check_permissions per act #8

Wardormeur opened this issue Feb 9, 2017 · 0 comments

Comments

@Wardormeur
Copy link
Contributor

Instead of having a runtime search for the profiles linked to the act, we can define an act per permission to check
ie : role: pluginName, cmd: 'checkPermissions', ref: cmdName
It should support multiple domains/subpatterns, so that ref may be an object to avoid having to redefine ref depending on the nesting
It must also keep the fact that a missing act is allowed if not found (overwrite default$ from seneca to return {allowed:true} when the error is "act_not_found")

@DanielBrierton DanielBrierton changed the title Define check_permissions per act Define check_permissions per act Apr 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants