Skip to content
Snippets Groups Projects
Commit d740bdbc authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix #6365

parent b5ca8ebe
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment