Opened 17 years ago

Closed 17 years ago

#5650 closed (duplicate)

'Save and add another' is displayed even without add permission

Reported by: Silviu Julean <sjulean@…> Owned by: nobody
Component: contrib.admin Version: newforms-admin
Severity: Keywords: newforms admin add permission
Cc: dany@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Even if a user does not have add permission for a certain model, the 'Save and add another' button (or 'Save as', according to the model admin save_as option) is displayed.

The expected behavior is to hide that button when the user doesn't have the add permission.

I have attached a (trivial) patch against newforms-admin r6442.

Attachments (2)

skip_save_as_without_perm_r6442.patch (1.7 KB ) - added by Silviu Julean <sjulean@…> 17 years ago.
Initial patch against newforms-admin r6442
skip_save_as_without_perm_r6442.2.patch (1.8 KB ) - added by Silviu Julean <sjulean@…> 17 years ago.
New patch that doesn't crash on add

Download all attachments as: .zip

Change History (3)

by Silviu Julean <sjulean@…>, 17 years ago

Initial patch against newforms-admin r6442

comment:1 by James Bennett, 17 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #3817.

by Silviu Julean <sjulean@…>, 17 years ago

New patch that doesn't crash on add

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