#30289: ManyToManyField Admin Inlines do not respect user permissions
-----------------------------------------+------------------------
Reporter: jayenashar | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 2.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
From https://code.djangoproject.com/ticket/8060#comment:34
Replying to [comment:34 Will Gordon]:
> This seems to have regressed in (at least) 2.1. I have 2 `view` only
permissions. I have a `ManyToManyField` represented in my main model as a
`TabularInline`. But, my user with `view` only permissions can now add or
remove these items at will!
I am having the same issue, so I assume this is a bug. I did not find
Will had created a separate ticket.
models.py:
{{{
class Photo(models.Model):
pass
class Report(models.Model):
photos = models.ManyToManyField(Photo)
}}}
admin.py:
{{{
class ReportPhotoInlineModelAdmin(admin.TabularInline):
model = Report.photos.through
show_change_link = True
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30289>
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/053.8d2bdfa1aeb935dd2920abfdf21125ee%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.