Changes between Initial Version and Version 1 of Ticket #18763, comment 9


Ignore:
Timestamp:
Jul 24, 2014, 1:35:08 PM (10 years ago)
Author:
Nick Sandford

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18763, comment 9

    initial v1  
    11Moved with_perm checking to the authentication backends. Current strategy is to use the top-most backend that defines `with_perm`. `django.contrib.auth.backends.ModelBackend` falls back to checking the same as was previously on the `UserManager`. This allows custom authentication backends to specify their own behaviour for `with_perm`, that takes `obj` into account.
    22
    3 It is now possible to do `User.objects.with_perm('can_delete', obj)` along with `User.objects.with_perm('can_delete').
     3It is now possible to do `User.objects.with_perm('can_delete', obj)` along with `User.objects.with_perm('can_delete')`.
    44
    55Pull request here: https://github.com/django/django/pull/2951
Back to Top