#15716: The has_perm() method of authorization backends should be able to
explicitly deny permission
------------------------------+------------------------------------
     Reporter:  Kronuz        |                    Owner:  nobody
         Type:  New feature   |                   Status:  new
    Component:  contrib.auth  |                  Version:
     Severity:  Normal        |               Resolution:
     Keywords:                |             Triage Stage:  Accepted
    Has patch:  0             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  0             |                    UI/UX:  0
------------------------------+------------------------------------
Changes (by jorgecarleitao):

 * cc: jorgecarleitao (added)


Comment:

 I believe the option of raising an exception is superior to return False
 since it allows exceptions that tell us why the permission was denied. A
 False would only provide information on whether it was forbidden or not,
 which can be too restrictive for future development of backends.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/15716#comment:11>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.b6bd92b3716d53f76fe031e5dd548f11%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to