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

Permissions managed at instance level? #5

Open
amberdiehl opened this issue Jan 15, 2017 · 0 comments
Open

Permissions managed at instance level? #5

amberdiehl opened this issue Jan 15, 2017 · 0 comments

Comments

@amberdiehl
Copy link

Hi there,

I am attempting to implement your forums project within my own application. I am running into issues with how permissions are defined in your app. E.g.

request.user.has_perm("forums.add_forumthread", obj=forum),

According to what I've read within Django documentation, the "obj=forum" is overriding the preceding "forums.add_forumthread". I have tested this in your code by setting "obj=None" temporarily (on the forum view) and sure enough, having setup a user with the right model permissions, I see a button to add a thread.

However, at the next point, thread_create, permissions are again checked with obj=forum and it fails again.

I cannot figure out how to grant a person permissions to the instance level nor do I see any reference in your application for this and cannot find any help googling.

Can you please provide me with some guidance?

Thanks in advance for your help.
Amber

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