code cleanup
authorKurund Jalmi <kurund@civicrm.org>
Fri, 19 Jul 2013 11:21:12 +0000 (16:51 +0530)
committerKurund Jalmi <kurund@civicrm.org>
Fri, 19 Jul 2013 11:21:12 +0000 (16:51 +0530)
CRM/Contact/BAO/Query.php

index 9d510df582867e93408ddc51b15e7d491a47f3b1..c9d11fc4fbd2b6a7fc2a4e64a55449b82a3e0d90 100644 (file)
@@ -4032,10 +4032,6 @@ civicrm_relationship.start_date > {$today}
       $this->_whereClause = $this->whereClause();
     }
 
-    // hack for now, add permission only if we are in search
-    // FIXME: we should actually filter out deleted contacts (unless requested to do the opposite)
-    $permission = ' ( 1 ) ';
-    $onlyDeleted = FALSE;
     $onlyDeleted = in_array(array('deleted_contacts', '=', '1', '0', '0'), $this->_params);
 
     // if we’re explicitely looking for a certain contact’s contribs, events, etc.