mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge pull request #24773 from Hystepik/develop_v17#1
Fix #24769 : External user cannot access card
This commit is contained in:
commit
1d45a6ee62
|
|
@ -431,6 +431,9 @@ function restrictedArea(User $user, $features, $object = 0, $tableandshare = '',
|
|||
if ($featureforlistofmodule == 'produit') {
|
||||
$featureforlistofmodule = 'product';
|
||||
}
|
||||
if ($featureforlistofmodule == 'supplier_proposal') {
|
||||
$featureforlistofmodule = 'supplierproposal';
|
||||
}
|
||||
if (!empty($user->socid) && !empty($conf->global->MAIN_MODULES_FOR_EXTERNAL) && !in_array($featureforlistofmodule, $listofmodules)) { // If limits on modules for external users, module must be into list of modules for external users
|
||||
$readok = 0;
|
||||
$nbko++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user