[Bps-public-commit] r15182 - in RT-Extension-CommandByEmail: .

sartak at bestpractical.com sartak at bestpractical.com
Thu Aug 14 23:02:59 EDT 2008


Author: sartak
Date: Thu Aug 14 23:02:58 2008
New Revision: 15182

Modified:
   RT-Extension-CommandByEmail/   (props changed)
   RT-Extension-CommandByEmail/lib/RT/Interface/Email/Filter/TakeAction.pm

Log:
 r69672 at onn:  sartak | 2008-08-14 23:02:55 -0400
 Pass in CurrentUser's PrincipalObj instead of Id


Modified: RT-Extension-CommandByEmail/lib/RT/Interface/Email/Filter/TakeAction.pm
==============================================================================
--- RT-Extension-CommandByEmail/lib/RT/Interface/Email/Filter/TakeAction.pm	(original)
+++ RT-Extension-CommandByEmail/lib/RT/Interface/Email/Filter/TakeAction.pm	Thu Aug 14 23:02:58 2008
@@ -175,7 +175,7 @@
         my $group = RT::Group->new($args{'CurrentUser'});
         $group->Load($group_id);
 
-        unless ($group->HasMemberRecursively($args{'CurrentUser'}->Id)) {
+        if (!$group->HasMemberRecursively($args{'CurrentUser'}->PrincipalObj)) {
             return ($args{'CurrentUser'}, $args{'AuthLevel'});
         }
     }



More information about the Bps-public-commit mailing list