#7438 closed enhancement (wontfix)
Restrict edit permission for ticket description to ticket owner
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | ticket system | Version: | 0.11-stable |
Severity: | normal | Keywords: | permissions groups |
Cc: | b7m1@…, norman@…, holger-juergs@…, pocek@…, Ryan J Ollos | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
THis is similar to #1316.
It would be very helpful if permissions to edit a ticket's description could be restricted to the owner. This allows the administrator(ahem) to be freed up from changing ticket descriptions all the time, while not giving all users in my developer group the TICKET_EDIT_DESCRIPTION permission.
Attachments (0)
Change History (21)
follow-up: 20 comment:1 by , 16 years ago
Cc: | added |
---|---|
Priority: | low → normal |
Version: | → 0.11-stable |
comment:2 by , 16 years ago
PrivateTicketsPlugin could be extended to work with TICKET_EDIT_DESCRIPTION, surely?
comment:3 by , 16 years ago
I've opened #3568 on the trac-hacks wiki to handle permissions in workflow
comment:5 by , 16 years ago
comment:1 has been implemented in VirtualTicketPermissionsPlugin. It creates a permission called 'TICKER_IS_OWNER' that is only given when the current user is the owner of the ticket (there are other new permissions for CC and reporter and groups too)
follow-ups: 11 21 comment:6 by , 15 years ago
Keywords: | permissions groups added |
---|---|
Milestone: | not applicable → 0.13 |
Summary: | ticet description editing permissions to owner → ticket description editing permissions to owner |
Ok, so comment:1 is implemented by TH:VirtualTicketPermissionsPlugin, which is interesting, but this can't be used to implement the original request.
Maybe for this we would need kinds of virtual groups, the same way we have the built-in authenticated:
- @ticket-owner
- @ticket-on-cc
- @ticket-reporter
The existing permissions (e.g. TICKET_EDIT_DESCRIPTION, but also ATTACHMENT_DELETE for #948) could then be assigned to some of these groups.
Those special groups might be dynamically attached to the user by the TicketSystem (or a plugin) implementing a IPermissionGroupProvider
, but then the get_permission_groups
must know about the resource for which we're currently checking the permission.
comment:7 by , 15 years ago
That sounds like a fantastic way to implement the functionality. Would that mean that instead of the PrivateTicketsPlugin TICKET_VIEW_REPORTER
you would just assign TICKET_VIEW
to @ticket-reporter (etc for owner, on-cc).
Would you create virtual groups for -in-owners-group, -in-reporter-group -in-cc-group?
comment:8 by , 15 years ago
It would be nice to have an "author" special user, along with the existing "anonymous" and "authenticated" ones.
comment:9 by , 15 years ago
Summary: | ticket description editing permissions to owner → Restrict edit permission for ticket description to ticket owner |
---|
comment:12 by , 14 years ago
Cc: | added |
---|
comment:13 by , 11 years ago
Cc: | added |
---|
comment:14 by , 11 years ago
Cc: | added |
---|
comment:16 by , 10 years ago
Cc: | added; removed |
---|
comment:17 by , 9 years ago
Cc: | removed |
---|
comment:19 by , 5 years ago
Replying to john.williams@…:
It would be very helpful if permissions to edit a ticket's description could be restricted to the owner.
Since 1.3.2 (#12719), authenticated user with TICKET_APPEND
or TICKET_CHGPROP
can modify description of ticket they reported. This allows the reporter to fix/add to the description.
In addition to the useful tip in comment:18, if you wish the owner to modify the description, you can implement a permission policy similar to DefaultTicketPolicy. In general, I don't think it makes sense to allow the owner to modify the description of a ticket because it depends on having useful restrictions on who set the ticket owner.
comment:20 by , 5 years ago
Replying to b7m1@…:
Something like:
resolve.permissions = TICKET_OWNER
which allows only the ticket owner to resolve the ticket.
The TracWorkflow now has a permissions
attribute, so you can restrict an action such as resolve
.
comment:21 by , 5 years ago
Replying to Christian Boos:
The existing permissions (e.g. TICKET_EDIT_DESCRIPTION, but also ATTACHMENT_DELETE for #948) could then be assigned to some of these groups.
#12719 also added ability for authenticated user to delete their own attachments.
comment:22 by , 5 years ago
Milestone: | next-major-releases |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
Closing as wontfix since this can be implemented with a custom permissions policy, and related enhancements to Trac would be covered under TracDev/Proposals/EvenFinerGrainedPermissions.
Agreed. Actually, I would like to see this in a more general case. It would be very nice to have a permission setting for actions only available to the owner of the ticket.
Something like:
resolve.permissions = TICKET_OWNER
which allows only the ticket owner to resolve the ticket.