Modify

Opened 3 years ago

Last modified 19 months ago

#11563 accepted enhancement

Restrict owner to users with access to the project

Reported by: endquote Owned by: Cinc-th
Priority: normal Component: SimpleMultiProjectPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

Now you can restrict who can view a tickets in a project, but if restrict_owner is true, the owner box shows all users in the system. It would be nice if it only showed those with access to the selected project.

Attachments (0)

Change History (5)

comment:1 Changed 3 years ago by endquote

FlexibleAssignToPlugin may provide some help here.

comment:2 Changed 3 years ago by anonymous

AutocompleteUsersPlugin is even cooler, though of course also not restricted to projects. Maybe it's possible to hack that plugin a bit in a way it looks at the project field also.

comment:3 Changed 3 years ago by endquote

For now, I think turning off restrict_owner and installing AutocompleteUsersPlugin is an ok solution. At least then I don't have a list of all users showing anywhere, but it would be even better if it only showed users who have access to the ticket's current project.

comment:4 Changed 19 months ago by Cinc-th

  • Owner changed from falkb to Cinc-th
  • Status changed from new to accepted

I looked briefly into FlexibleAssignToPlugin and the documentation states:

Note: the FlexibleAssignTo framework does not modify the fields on the "New Ticket" page

So I think it's only a partial solution.

What bothers me more is there was no update in years so relying on it makes me uneasy despite the impressive feature set (which may or may not come in handy for future SimpleMultiProjectPlugin features).

So I think I'll run for a homegrown solution here starting with implementing the ITicketManipulator interface. This one is necessary anyway imho to prevent creating tickets with forbidden owners.

comment:5 Changed 19 months ago by Cinc-th

Well, just noticed the available projects list is already filtered when creating a new ticket. So no need for the ITicketManipulator here...

Add Comment

Modify Ticket

Action
as accepted The owner will remain Cinc-th.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.