#20218: Default authorization backend returns False when queried for object
level
permissions
------------------------------+------------------------------------
Reporter: soren@… | Owner: nobody
Type: Bug | Status: new
Component: contrib.auth | Version: 1.5
Severity: Normal | Resolution:
Keywords: auth | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Comment (by Mehmet Dogan):
Here is what I propose in terms of working around the backward
compatibility that seems to have kept it from being solved for so long.
1) define a global setting, say:
`OBJECT_PERMISSION_FALLBACK_TO_MODEL=False`. This is to help maintain the
default behavior (unless the setting is changed of course).
2) (as mentioned in the above comment) define a keyword argument at the
method level for occasional override, say: `fallback_to_model=None`.
Default value of `None` means it will be ignored in favor of the global
setting, otherwise, it will take precedence.
I can work on a patch if found reasonable.
--
Ticket URL: <https://code.djangoproject.com/ticket/20218#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/075.8858b8b78cc0d5b8f03486b3b510ea45%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.