Florian,

Can you clarify this part, I am not sure what you meant:

> in the worst case the user would have to change the permission backend
which is easy enough…

On Wed, Jan 17, 2018 at 10:31 AM Florian Apolloner <f.apollo...@gmail.com>
wrote:

>
>
> On Wednesday, January 17, 2018 at 11:45:05 AM UTC+1, Carlton Gibson wrote:
>>
>>     The objection is to this kind of check:
>>
>>         if user.has_perm('foo.change_bar', obj=bar) or
>> user.has_perm('foo.change_bar'):
>>             ...
>>
>
> FWIW  I would never write code like this. `user.has_perm('foo.change_bar',
> obj=bar)` would be enough, in the worst case the user would have to change
> the permission backend which is easy enough…
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-developers/MLWfvPPVwDk/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/242593f2-b218-43b7-bb17-bd5ca7e2634f%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/242593f2-b218-43b7-bb17-bd5ca7e2634f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAFdefwNXkA8c2SD2kRsMBuzKk2Xwt4SJMtpWyro3q%2BtXzYEHpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to