Opened 8 years ago

Closed 8 years ago

#14393 closed (fixed)

'Add Another' link appears next to ForeignKey field when user has no permission.

Reported by: menollo Owned by: nobody
Component: contrib.admin Version: 1.2
Severity: Keywords: foreignkey admin add link
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


When I have a model like this:

class A(models.Model):
    title = models.CharField(max_length=255)

class B(models.Model):
    title = models.CharField(max_length=255)
    a     = models.ForeignKey(A)

and the user has no permission to add instances of class A.
The 'Add Another' link is stil visible in the change form (admin) of class B. (on click it gives a permission denied page)

while in the admin homepage, the 'Add' link is not visible at all (for that user)... this seems inconsistent.

Change History (2)

comment:1 Changed 8 years ago by anonymous

milestone: 1.3
Version: SVN1.2

comment:2 Changed 8 years ago by anonymous

Resolution: fixed
Status: newclosed

Its fixed in the trunk, see this ticket #1035
and this changeset r13708

Note: See TracTickets for help on using tickets.
Back to Top