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
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.
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: