Skip to content

Commit

Permalink
Merge pull request #8022 from OPEN-DSI/core_access_rights_resource_mu…
Browse files Browse the repository at this point in the history
…ltientities

Fix: Access rights for resource in multi-entities
  • Loading branch information
eldy committed Jan 4, 2018
2 parents 60976c0 + 7d824b3 commit 21506f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/lib/security.lib.php
Expand Up @@ -383,7 +383,7 @@ function checkUserAccessToObject($user, $featuresarray, $objectid=0, $tableandsh
if ($feature == 'project') $feature='projet';
if ($feature == 'task') $feature='projet_task';

$check = array('adherent','banque','user','usergroup','produit','service','produit|service','categorie'); // Test on entity only (Objects with no link to company)
$check = array('adherent','banque','user','usergroup','produit','service','produit|service','categorie','resource'); // Test on entity only (Objects with no link to company)
$checksoc = array('societe'); // Test for societe object
$checkother = array('contact','agenda'); // Test on entity and link to third party. Allowed if link is empty (Ex: contacts...).
$checkproject = array('projet','project'); // Test for project object
Expand Down

0 comments on commit 21506f2

Please sign in to comment.