Opened 18 years ago
Closed 17 years ago
#2927 closed defect (duplicate)
[patch] In admin, user shouldn't see "add" buttons if they don't have the permission.
Reported by: | Chris Beaven | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
There's the save and add another button, and the add button next to the foreign key widget. Neither should show if the user doesn't have the correct permissions.
Attachments (4)
Change History (8)
by , 18 years ago
Attachment: | fix_admin_add_buttons.patch added |
---|
comment:1 by , 18 years ago
Summary: | In admin, user shouldn't see "add" buttons if they don't have the permission. → [patch] In admin, user shouldn't see "add" buttons if they don't have the permission. |
---|
comment:2 by , 18 years ago
I like the concept, but reading the context (in admin_modify) isn't OK; template tags should not assume anything about the context. Can you rework the patch to be less brittle?
by , 18 years ago
Attachment: | fix_admin_add_buttons.3.patch added |
---|
Oops, the real less brittle patch this time.
by , 18 years ago
Attachment: | fix_admin_add_buttons.4.patch added |
---|
Umm... third time's a charm... (turns out you have to save files before creating patch)
comment:3 by , 18 years ago
Triage Stage: | Unreviewed → Accepted |
---|
Does this need to be updated for newforms.admin?
comment:4 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Here's the patch to make this all work.