getUser()->isAdmin()) { $result['whereClause'][] = array( 'isActive' => true ); } } }