[Rt-commit] [svn] r706 - in rt/trunk: . lib/RT

jesse at pallas.eruditorum.org jesse at pallas.eruditorum.org
Mon Apr 19 23:25:46 EDT 2004


Author: jesse
Date: Mon Apr 19 23:25:46 2004
New Revision: 706

Modified:
   rt/trunk/   (props changed)
   rt/trunk/lib/RT/ACL_Overlay.pm
Log:
 ----------------------------------------------------------------------
 r2099 at tinbook:  jesse | 2004-04-20T03:25:26.896206Z
 
 Message-ID: <4083E905.8020903 at uk.yahoo-inc.com>                                                 
 Date: Mon, 19 Apr 2004 15:58:13 +0100                                                           
 From: Vernon Lyon <vlyon at uk.yahoo-inc.com>                                                      
 
 
 Hi Jesse,                                                                                       
                                                                                                 
 I submitted this a few months ago, but it seems to have gotten lost.                            
 Below is a diff for a quick bug fix for the file: lib/RT/ACL_Overlay.pm                         
                                                                                                 
  *   $args{'PrincipalId'}  should be  $args{'Id'}                                               
                                                                                                 
 Regards,                                                                                        
 Vernon                                                                                          
 
 

Modified: rt/trunk/lib/RT/ACL_Overlay.pm
==============================================================================
--- rt/trunk/lib/RT/ACL_Overlay.pm	(original)
+++ rt/trunk/lib/RT/ACL_Overlay.pm	Mon Apr 19 23:25:46 2004
@@ -119,11 +119,11 @@
     # lead me to start to suspect that we really want users and groups
     # to just be the same table. or _maybe_ that we want an object db.
     my $princ = RT::Principal->new($RT::SystemUser);
-    $princ->Load($args{'PrincipalId'});
+    $princ->Load($args{'Id'});
     if ($princ->PrincipalType eq 'User') {
     my $group = RT::Group->new($RT::SystemUser);
         $group->LoadACLEquivalenceGroup($princ);
-        $args{'PrincipalId'} = $group->PrincipalId;
+        $args{'Id'} = $group->PrincipalId;
     }
         $self->Limit( FIELD           => 'PrincipalId',
                       OPERATOR        => '=',


More information about the Rt-commit mailing list