Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.