Skip to content

Instantly share code, notes, and snippets.

@esimonetti
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esimonetti/53e3592bd802be0a50b4 to your computer and use it in GitHub Desktop.
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'
<?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