Edgewall Software
Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#11900 closed defect (fixed)

TracAdmin does not display a restricted list of possible Component owners

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.3
Component: ticket system Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:

The list of owners displayed when completing the component add <component> command is restricted to the allowed ticket owners.

API Changes:

TicketSystem.get_allowed_users() returns a list of permitted ticket owners, performing fine-grained permission checks using the ticket object, if specified.

Internal Changes:

Description

The get_user_list method of the ComponentAdminPanel class executes a query to retrieve the list of possible users that will be suggested as Component owners when tab-completing the command: SELECT DISTINCT username FROM permission. When [ticket] restrict_owner is True, the list of possible owners for a Component is determined from the known users that have TICKET_MODIFY permission.

For an environment in which only user1 and user2 have a valid authenticated session but I've assigned permissions to several other users, I see:

> component add component4 
anonymous      group2         user2          user4          
authenticated  user1          user3          user5          

Attachments (0)

Change History (3)

comment:1 by Ryan J Ollos, 10 years ago

Proposed changes in log:rjollos.git:t11900.

comment:2 by Ryan J Ollos, 10 years ago

Owner: set to Ryan J Ollos
Status: newassigned

comment:3 by Ryan J Ollos, 10 years ago

API Changes: modified (diff)
Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Changes committed to 1.0-stable in [13615,13617], merged to trunk in [13616,13618]. Tests for [13618] added to trunk in [13619]. Tests also added on trunk in [13616] (log message is incorrect and should say Added unit-tests that couldn't be added on 1.0-stable).

Last edited 10 years ago by Ryan J Ollos (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Ryan J Ollos to the specified user.

Add Comment


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