[rt-users] Adding ReplyToTicket right to Requestor on Help queue failing

Ruslan Zakirov ruz at bestpractical.com
Thu May 30 17:51:03 EDT 2013


You don't check any return value.


On Fri, May 31, 2013 at 1:05 AM, Asif Iqbal <vadud3 at gmail.com> wrote:

> Hi All
>
> I am trying this and I do not the right gets added.
>
> use strict;
> use lib '/opt/rt3/lib';
>
> use RT;
> use RT::Interface::CLI;
> use Data::Dumper;
>
> RT::LoadConfig();
> RT::Init();
>
> my $queue = RT::Queue->new( $RT::SystemUser );
>
> my $group = RT::Group->new( $RT::SystemUser );
>
> $queue->Load( 'Help' );
>
> $group->LoadSystemRoleGroup( 'Requestor' );
>
> $group->PrincipalObj->GrantRight( Object => $queue, Right =>
> 'ReplyToTicket' );
>
> What am I doing wrong?
>
> --
> Asif Iqbal
> PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
>
>
>
>
> --
> RT Training in Seattle, June 19-20: http://bestpractical.com/training
>



-- 
Best regards, Ruslan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130531/f0889004/attachment.htm>


More information about the rt-users mailing list