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

Question about permissions #66

Open
raulsperoni opened this issue Aug 27, 2022 · 1 comment
Open

Question about permissions #66

raulsperoni opened this issue Aug 27, 2022 · 1 comment

Comments

@raulsperoni
Copy link

raulsperoni commented Aug 27, 2022

Hi, I'm still integrating this lib and have some questions.

I'm trying to model a hierarchical organization. I have Organization extending from Group and User extending from Member. I want to create Users that have permissions over the sub organization of which they are members.

After creating the user I'm using add_member to add the User to the Org and assign_object to assign the Org object to the Org group.

Running some tests I see that permissions are correct over the Organization objects, but the Users have no permissions over the models. This is causing for example that a user has no permissions for Django admin.

Do I have to add these permissions manually, or I'm using this the wrong way?

Thank you for your patience!

@raulsperoni
Copy link
Author

Furthermore, even if inside the tests a member of a Group has permissions over the group descendants, I'm not being able to reproduce this in the actual database, and the member only has permission over his group. Can you think of some sanity check for this situation?

Thank you.

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