Ticket #3568 (closed enhancement: wontfix)

Opened 3 years ago

Last modified 3 years ago

Allow check_permission to work with TICKET_VIEW_* permissions

Reported by: norman@rasmussen.co.za Assigned to: coderanger
Priority: normal Component: PrivateTicketsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I would like to use this to restrict certain workflow items to the ticket's OWNER only, see #3567 as an example.

Attachments

Change History

08/18/08 17:35:20 changed by norman@rasmussen.co.za

Another example of usage: #7438 comment 1

08/18/08 18:50:24 changed by coderanger

  • status changed from new to closed.
  • resolution set to invalid.

This plugin is already a standard permission policy. If it doesn't work, the problem is in how the workflow system checks permissions.

08/18/08 19:50:17 changed by norman@rasmussen.co.za

  • status changed from closed to reopened.
  • resolution deleted.

Sorry, I don't think you understand, here's the rule I'm trying to set up in the workflow system:

accept.permissions = TICKET_VIEW_OWNER

I'm trying to limit accept to the current owner of the ticket. (without forcing set_owner_to_self)

As far as I can see the plugin return None for 'TICKET_VIEW_OWNER'. It's only designed to grant 'TICKET_VIEW' if the user has 'TICKET_VIEW_OWNER' and is the owner - I want 'TICKET_VIEW_OWNER' to be granted if the user is the owner.

I don't want to assign the user 'TICKET_VIEW_OWNER' because then they will only be able to see their own tickets. I actually want something like TICKET_IS_OWNER.

I will look at making a patch first, then give some more feedback.

08/18/08 19:52:51 changed by coderanger

  • status changed from reopened to closed.
  • resolution set to wontfix.

This sounds fine, but isn't related to privatetickets. The place to implement such a selector is in a workflow plugin.

08/19/08 12:59:31 changed by normanr

VirtualTicketPermissionsPlugin now handles this.


Add/Change #3568 (Allow check_permission to work with TICKET_VIEW_* permissions)




Change Properties
Action