#26954: has_module_permission set to False on ModelAdmin raises 403 Forbidden
error
when visiting its app page
-------------------------------+--------------------
Reporter: bhch | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 1
-------------------------------+--------------------
Suppose an app has 2 (or more) models, and we hide one model from the
admin index page by returning `False` in `has_module_permission` method of
`ModelAdmin`. Now, if we visit the admin index page, we see all the models
under our app except the one we hid. So far so good.
But if we visit the app page (at /admin/<app_label>/) we get a `403
Forbidden` error. Whereas one would expect to see the app page with the
models listed there, except of course the hidden ones.
--
Ticket URL: <https://code.djangoproject.com/ticket/26954>
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/047.8f2023f879cdd57e5e0277dfcc7c00ba%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.