This commit is contained in:
Laurent Destailleur 2017-02-03 11:38:09 +01:00
parent b5ca8ebef9
commit d740bdbc73

View File

@ -170,7 +170,10 @@ class DolibarrApi
* @throws RestException
*/
static function _checkAccessToResource($resource, $resource_id=0, $dbtablename='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid') {
// For backward compatibility
if ($resource == 'member') $resource='adherent';
// Features/modules to check
$featuresarray = array($resource);
if (preg_match('/&/', $resource)) {