#11383: Admin action 'Delete selected' check only global model delete permission
-------------------------------------+-------------------------------------
Reporter: krejcik@… | Owner: (none)
Type: Bug | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: delete permission | Triage Stage: Accepted
admin |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by rwlogel):
If the `ModelAdmin._filter_actions_by_permissions` method were updated so
that it passed in some variable to the `has_permission` function to
identify that it was being used to filter the actions the
`has_delete_permission` could act accordingly. Then when
`AdminViewPermissionBaseModelAdmin.get_model_perms` calls
`has_delete_permission` it can differentiate from the action filter and
return false with an appropriate error message.
--
Ticket URL: <https://code.djangoproject.com/ticket/11383#comment:18>
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/071.df5df9b194496e58c420d9f5ce3856f2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.