Modify ↓
Opened 13 years ago
Last modified 5 years ago
#9835 new defect
Sensitive checkbox should be hidden for users who aren't allowed to check it
Reported by: | Daniel Kahn Gillmor | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | SensitiveTicketsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
as of r11287, the SensitiveTicketsPlugin prevents people from setting a ticket to sensitive if that would cause the ticket itself to be hidden from them.
We should hide the checkbox in the "ticket properties" section if we know that the user is going to get an error if they check it.
I believe one way to do this would be to extend ITemplateStreamFilter to conditionally either inject css to set the objects to "display:none" or to simply remove the objects entirely. I don't know how to do this yet, though. I would welcome patches!
Some example CSS if the checkbox needed to be hidden might be:
label[for="field-sensitive"]: { display: none; } input#field-sensitive: { display: none; }
Attachments (0)
Change History (2)
comment:1 Changed 13 years ago by
comment:2 Changed 5 years ago by
Owner: | Daniel Kahn Gillmor deleted |
---|
Note: See
TracTickets for help on using
tickets.
Note that this is probably only relevant when
limit_sensitivity
is enabled intrac.ini