[rt-users] Set user rights with scrip?
Stephen Turner
sturner at MIT.EDU
Mon Jun 19 14:55:05 EDT 2006
At Monday 6/19/2006 02:14 PM, Bill Chever wrote:
>Todd,
>
>That's great and thanks for the quick reply. Excuse my ignorance, but how
>do I get from the Requestors RT Group to the UserObj? In this case, I'm
>assuming only one Requestor.
>
>$self->TicketObj->Requestors->< missing this >$UserObj->SetPrivileged(0);
>return 1;
>
>Bill
Bill,
A ticket can have more than one requestor, so you can't do what you
want in one line. $self->TicketObj->Requestors returns a Group
object, so you'll have to work with that object to pull out the
individual requestors.
Steve
More information about the rt-users
mailing list