Edgewall Software

Opened 10 years ago

Last modified 21 months ago

#7438 new enhancement

Restrict edit permission for ticket description to ticket owner

Reported by: john.williams@… Owned by:
Priority: normal Milestone: next-major-releases
Component: ticket system Version: 0.11-stable
Severity: normal Keywords: permissions groups
Cc: b7m1@…, norman@…, holger-juergs@…, pocek@…, Ryan J Ollos
Release Notes:
API Changes:


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 (17)

comment:1 Changed 10 years ago by b7m1@…

Cc: b7m1@… added
Priority: lownormal
Version: 0.11-stable

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.

comment:2 Changed 10 years ago by anonymous

PrivateTicketsPlugin could be extended to work with TICKET_EDIT_DESCRIPTION, surely?

comment:3 Changed 10 years ago by anonymous

I've opened #3568 on the trac-hacks wiki to handle permissions in workflow

comment:4 Changed 10 years ago by norman@…

Cc: norman@… added

(sorry forgot to author the last two comments)

comment:5 Changed 10 years ago by norman@…

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)

comment:6 Changed 9 years ago by Christian Boos

Keywords: permissions groups added
Milestone: not applicable0.13
Summary: ticet description editing permissions to ownerticket 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 Changed 9 years ago by Norman Rasmussen <norman@…>

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 Changed 9 years ago by Emmanuel Blot

It would be nice to have an "author" special user, along with the existing "anonymous" and "authenticated" ones.

comment:9 Changed 9 years ago by anonymous

Summary: ticket description editing permissions to ownerRestrict edit permission for ticket description to ticket owner

comment:10 Changed 9 years ago by Ryan Ollos <ryano@…>

Cc: ryano@… added

Changed ticket summary to better describe request.

comment:11 in reply to:  6 Changed 9 years ago by Christian Boos

comment:12 Changed 8 years ago by j.beilicke@…

Cc: j.beilicke@… added

comment:13 Changed 5 years ago by holger-juergs@…

Cc: holger-juergs@… added

comment:14 Changed 5 years ago by pocek@…

Cc: pocek@… added

comment:16 Changed 4 years ago by Ryan J Ollos

Cc: Ryan J Ollos added; ryano@… removed

comment:17 Changed 3 years ago by Jan Beilicke <j.beilicke@…>

Cc: j.beilicke@… removed

Modify Ticket

Change Properties
Set your email in Preferences
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set.
The owner will be changed from (none) to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.