Last active
August 29, 2015 14:23
-
-
Save esimonetti/53e3592bd802be0a50b4 to your computer and use it in GitHub Desktop.
Modify Users REST API to retrieve all Users/Employees. The system normally allows retrieve of records with status or employee_status='Active' and with portal_only='0'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// | |
// Enrico Simonetti | |
// | |
// | |
// Description: | |
// Modify Users REST API to retrieve all Users/Employees | |
// The system normally allows retrieve of records with status or employee_status='Active' and with portal_only='0' | |
// | |
// Version: Tested on SugarCRM 7.6.0.0 | |
// | |
// File Path: custom/clients/base/api/CustomPersonFilterApi.php | |
// | |
// Additional Instructions: | |
// Execute Repair and Rebuild | |
// | |
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
require_once('clients/base/api/PersonFilterApi.php'); | |
class CustomPersonFilterApi extends PersonFilterApi { | |
public function registerApiRest() { | |
return parent::registerApiRest(); | |
} | |
protected function getCustomWhereForModule($module, $query = null) { | |
return; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment