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

perms_via doesn't work well with scopes #106

Open
stefanmajoor opened this issue Nov 20, 2018 · 1 comment
Open

perms_via doesn't work well with scopes #106

stefanmajoor opened this issue Nov 20, 2018 · 1 comment
Assignees

Comments

@stefanmajoor
Copy link
Collaborator

If you use the perms_via on a view, both the original view as well as the view which delegates the views need to implement all the scopes. Meaning that both the original view needs all scopes from the subviews, and the subviews need all the scopes from the original view.

Proposed solution:

If you set perms_via you are not allowed to implement scopes not present in the perms_via model view; only allow perms_via if the model is a superclass of the perms_via model, and automatically copy the scope functions.

@stefanmajoor stefanmajoor self-assigned this Nov 20, 2018
@stefanmajoor
Copy link
Collaborator Author

@daanvdk @sjamaan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant