Opened 5 years ago

Closed 5 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: UI/UX:

Description

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 5 years ago by anonymous

  • milestone 1.3 deleted
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Version changed from SVN to 1.2

comment:2 Changed 5 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

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

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