[rt-users] will this work?
Mathew Snyder
theillien at yahoo.com
Fri Jul 6 00:09:08 EDT 2007
I want to use a different template for the autoreply for a single queue.
Basically, I'll be matching the subject to a predetermined string. This string
will only be used by privileged users but, to make certain that only they will
receive this auto reply, I want to set the condition for the scrip to check for
them.
Will it work to use
my %userID;
my $users = new RT::Users(RT::CurrentUser);
$users->LimitToPrivileged;
while (my $user = $users->Next) {
next if $user->Name eq 'root';
$userID{$user->Name} = undef;
}
if exists($userID{$self->TicketObj->Creator} {
return 1;
}else{
return(undef);
}
Thanks
Mathew
--
Keep up with me and what I'm up to: http://theillien.blogspot.com
More information about the rt-users
mailing list