dfunckt / django-rules

Awesome Django authorization, without the database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django Rules with Non Auth User Model

g-kartik opened this issue · comments

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')?