[PATCH] suppress some users from assign-to box, especially current track user and ticket owner
|Reported by:||bof||Owned by:||gt4329b|
(also sent to trac-dev@…, but I don't know whether that goes through)
for a plugin I'm working on, which is designed to provide the
IValidOwnerProvider interface, I need access to req.authname,
and ideally also to ticket.owner for the ticket under consideration.
I need this for an optional feature of removing / forbidding the current
user (or ticket owner) as a next-step assignee in a workflow.
I managed to get at req.authname, but only by modifying FlexibleAssignTo
itself to pass down the req parameter to the getUsers method.
And I did not "immediately" find a way to get at the ticket information
itself, so I'm still missing the desired forbid-current-ticket-owner
Is there some generic way I missed, to get at both pieces of information
from that place? Some self.env magic?