Opened 15 years ago
Last modified 2 years ago
#8653 new enhancement
[PATCH] Don't allow anonymous users to modify some fields
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | unscheduled |
Component: | ticket system | Version: | 0.11.5 |
Severity: | normal | Keywords: | patch permissionpolicy |
Cc: | hju@…, mmitar@…, Thijs Triemstra, Ryan J Ollos | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
This patch lets you set a comma separated list of fields that won't be visible at /newticket time to users without TICKET_MODIFY status.
Included is a bonus exception check we received when there were non-numeric ticket numbers.
To use: in trac.ini, we have this line:
[ticket] not_anon_fields=load,priority,keywords,revw,owner,cc,xref,weeks,milestone
These are fields we do NOT want 'anonymous' users to modify when creating a ticket. (For example, revw is used to mark a ticket with the name of a reviewer.)
Note that there is a default list of fields hidden as well with this patch. The default could be made empty.
Attachments (1)
Change History (12)
by , 15 years ago
Attachment: | 8653_not_anon_fields.patch added |
---|
comment:1 by , 15 years ago
Replying to Steven R. Loomis <srl@…>:
This patch lets you set a comma separated list of fields that won't be visible at /newticket time to users without TICKET_MODIFY status.
If I could make a suggestion … you talk about requiring TICKET_MODIFY
permission, but then name the corresponding field not_anon_fields
. However, there is no requirement in a Trac installation that TICKET_MODIFY
is or is not granted to anonymous users, so you are associating two things that need not be associated.
If this or something similar were to be integrated into Trac, it seems like the field would be more appropriately named something like hide_if_not_ticket_modify
.
comment:2 by , 15 years ago
Keywords: | permissionpolicy added |
---|---|
Milestone: | → 2.0 |
Also, in Trac proper, I would rather see an extension of the "namespace" to specify what has to be tested, see comment:176:ticket:454.
I'll collect those ideas and write a new proposal in TracDev/Proposals/EvenFinerGrainedPermissions.
comment:3 by , 15 years ago
Cc: | added |
---|
comment:4 by , 15 years ago
Cc: | added |
---|
comment:6 by , 14 years ago
Cc: | added |
---|
comment:8 by , 14 years ago
Cc: | added |
---|---|
Summary: | Patch: Don't allow anonymous users to modify some fields → [PATCH] Don't allow anonymous users to modify some fields |
comment:10 by , 10 years ago
Cc: | added; removed |
---|
comment:11 by , 9 years ago
Keywords: | patch added |
---|
8653_not_anon_fields.patch against milestone:0.11.5 r8446