Opened 17 years ago
Closed 17 years ago
#5650 closed (duplicate)
'Save and add another' is displayed even without add permission
Reported by: | 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)
Change History (3)
by , 17 years ago
Attachment: | skip_save_as_without_perm_r6442.patch added |
---|
by , 17 years ago
Attachment: | skip_save_as_without_perm_r6442.2.patch added |
---|
New patch that doesn't crash on add
Note:
See TracTickets
for help on using tickets.
Initial patch against newforms-admin r6442