<SELECT NAME="<%$Name%>">
<OPTION VALUE="">-</OPTION>
<OPTION <% ($RT::Nobody->Id() == $Default) && "SELECTED" %> VALUE="<%$RT::Nobody->Id%>"><%$RT::Nobody->Name%></OPTION>
%while ( my $User = $Users->Next())  {
% if ((!defined $QueueObj) || ($User->HasQueueRight(Right => 'OwnTicket', QueueObj => $QueueObj, TicketObj => $TicketObj))){
<OPTION VALUE="<%$User->Id()%>" <% ($User->Id() == $Default) && "SELECTED" %>><%$User->Name()%></OPTION>
% }
%}
</SELECT>

<%INIT>
my $Users = RT::Users->new($session{CurrentUser});
$Users->LimitToPrivileged;
</%INIT>

<%ARGS>
$QueueObj => undef
$Name => undef
$Default => undef
$User => undef
$TicketObj => undef
</%ARGS>
