[Rt-commit] r7886 - rt/branches/3.6-RELEASE/lib/RT

ruz at bestpractical.com ruz at bestpractical.com
Wed May 16 13:17:11 EDT 2007


Author: ruz
Date: Wed May 16 13:17:08 2007
New Revision: 7886

Modified:
   rt/branches/3.6-RELEASE/lib/RT/ACE_Overlay.pm

Log:
* method must return object and type, not status and message

Modified: rt/branches/3.6-RELEASE/lib/RT/ACE_Overlay.pm
==============================================================================
--- rt/branches/3.6-RELEASE/lib/RT/ACE_Overlay.pm	(original)
+++ rt/branches/3.6-RELEASE/lib/RT/ACE_Overlay.pm	Wed May 16 13:17:08 2007
@@ -917,9 +917,8 @@
         my $equiv_group = RT::Group->new( $self->CurrentUser );
         $equiv_group->LoadACLEquivalenceGroup($princ_obj);
         unless ( $equiv_group->Id ) {
-            $RT::Logger->crit(
-                 "No ACL equiv group for princ " . $self->__Value('ObjectId') );
-            return ( 0, $self->loc('System error. Right not granted.') );
+            $RT::Logger->crit( "No ACL equiv group for princ " . $princ_obj->id );
+            return ( RT::Principal->new($RT::SystemUser), undef );
         }
         $princ_obj  = $equiv_group->PrincipalObj();
         $princ_type = 'Group';


More information about the Rt-commit mailing list