import rt 3.8.8
[freeside.git] / rt / lib / RT / Shredder / Plugin / Users.pm
index 2565fc5..99071a2 100644 (file)
@@ -166,15 +166,9 @@ sub Run
     #                   Creator Created LastUpdated LastUpdatedBy));
     if( my $s = $self->{'opt'}{'status'} ) {
         if( $s eq 'any' ) {
-            $objs->{'find_disabled_rows'} = 1;
+            $objs->FindAllRows;
         } elsif( $s eq 'disabled' ) {
-            $objs->{'find_disabled_rows'} = 1;
-            $objs->Limit(
-                ALIAS => $objs->PrincipalsAlias,
-                FIELD    => 'Disabled',
-                OPERATOR => '!=',
-                VALUE    => '0',
-            );
+            $objs->LimitToDeleted;
         } else {
             $objs->LimitToEnabled;
         }