<br><font size=2 face="sans-serif">Hello,</font>
<br>
<br><font size=2 face="sans-serif">I'm using rt-3.6.1 after a migration
from rt-3.0.9. Database is MySQL 4.1.15.</font>
<br><font size=2 face="sans-serif">Given an RT::Group object and an RT::Queue
object, what is the simplest way to grant a right such as "AdminQueue"
to the group?</font>
<br>
<br><font size=2 face="sans-serif">I've been trying the following without
any joy:</font>
<br>
<br><font size=2 face="sans-serif"><code></font>
<br><font size=2 face="sans-serif">...</font>
<br><font size=2 face="sans-serif">my $rt_group = RT::Group->new(RT::SystemUser);</font>
<br><font size=2 face="sans-serif">my $rt_queue = RT::Queue->new(RT::SystemUser);</font>
<br>
<br><font size=2 face="sans-serif">$rt_group->LoadUserDefinedGroup("test
admins");</font>
<br><font size=2 face="sans-serif">$rt_queue->Load("test queue");</font>
<br>
<br><font size=2 face="sans-serif">my $principal = $rt_group->PrincipalObj;</font>
<br>
<br><font size=2 face="sans-serif">$principal->GrantRight(Right =>
"AdminQueue", Object => $rt_queue);</font>
<br><font size=2 face="sans-serif"></code></font>
<br>
<br><font size=2 face="sans-serif">However, when I run that code I get
the following message:</font>
<br><font size=2 face="sans-serif">[Mon Oct 30 16:28:33 2006] [crit]: 1
(/opt/rt/lib/RT/ACE_Overlay.pm:907)</font>
<br><font size=2 face="sans-serif">[Mon Oct 30 16:28:33 2006] [crit]: Can't
load a principal for id (/opt/rt/lib/RT/ACE_Overlay.pm:908)</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br><font size=2 face="sans-serif"><br>
-- <br>
Paddy Newman - t. +44(020)7545-4902 e. 54902</font>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">---</span><br>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">This e-mail may contain confidential and/or privileged information. If you </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">are not the intended recipient (or have received this e-mail in error) </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">please notify the sender immediately and destroy this e-mail. Any </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">unauthorized copying, disclosure or distribution of the material in this </span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">e-mail is strictly forbidden.</span><br>