[rt-devel] RT::User::HasQueueRight equiv in rt3?

Jesse Vincent jesse at bestpractical.com
Thu Mar 6 02:29:52 EST 2003


Have a look at HasRight in User_Overlay.pm.

I think you want ->HasRight( Object => $self->TicketObj->QueueObj, Right => 'OwnTicket')


On Wed, Mar 05, 2003 at 03:32:34PM -0800, matthew zeier wrote:
> Bruce's AutoTake generated the below error on rt2.1.78.  Is there an equiv
> function that I should use instead?
> 
> 
> # Can they own a ticket in this queue?
> if( $self->TransactionObj->CreatorObj->HasQueueRight(
>     QueueObj => $self->TicketObj->QueueObj, Right => 'OwnTicket' ) ){
> 
> 
> 
> [Wed Mar  5 23:23:53 2003] [error]: Scrip 28 died. - RT::User::HasQueueRight
> Unimplemented in RT::Action::AutoTake. (/opt/rt3/lib/RT/Action/AutoTake.pm
> line 36)
> 
> Stack:
>   [/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm:281]
>   [/usr/lib/perl5/site_perl/5.8.0/DBIx/SearchBuilder/Record.pm:458]
>   [/opt/rt3/lib/RT/Action/AutoTake.pm:36]
>   [/opt/rt3/lib/RT/ScripAction_Overlay.pm:193]
>   [/opt/rt3/lib/RT/Scrip_Overlay.pm:406]
>   [/opt/rt3/lib/RT/Scrip_Overlay.pm:345]
>   [/opt/rt3/lib/RT/Transaction_Overlay.pm:169]
>   [/opt/rt3/lib/RT/Ticket_Overlay.pm:3649]
>   [/opt/rt3/lib/RT/Ticket_Overlay.pm:2274]
>   [/opt/rt3/lib/RT/Interface/Web.pm:388]
>   [/opt/rt3/share/html/Ticket/Display.html:101]
>   [/opt/rt3/local/html/Ticket/Update.html:190]
>   [/opt/rt3/share/html/autohandler:146]
>  (/opt/rt3/lib/RT/Scrip_Overlay.pm:360)
> 
> 
> 
> --
> matthew zeier                        | "Nothing in life is to be feared.
> InteleNet Communications, Inc.       |  It is only to be understood."
> (949) 784-7904                       |       - Marie Curie
> 
> _______________________________________________
> rt-devel mailing list
> rt-devel at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-devel

-- 
http://www.bestpractical.com/rt  -- Trouble Ticketing. Free.



More information about the Rt-devel mailing list