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

Django Rules with Non Auth User Model #151

Open
g-kartik opened this issue Nov 17, 2021 · 0 comments
Open

Django Rules with Non Auth User Model #151

g-kartik opened this issue Nov 17, 2021 · 0 comments

Comments

@g-kartik
Copy link

g-kartik commented Nov 17, 2021

I have a django model which is not the auth user model but it inherits the permissions mixin, which means all the permissions are linked to it and request.user also returns this model instance instead of auth user model instance. How would django rules will work in such case, when we call request.user.has_perm('some_perrm_string')?

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