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

Fix: Access to category of third party

parent 2f61e509
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,7 @@ if ($_REQUEST["socid"])
if ($_REQUEST["typeid"] == 1) { $type = 'fournisseur'; $socid = isset($_REQUEST["socid"])?$_REQUEST["socid"]:''; }
if ($_REQUEST["typeid"] == 2) { $type = 'societe'; $socid = isset($_REQUEST["socid"])?$_REQUEST["socid"]:''; }
$objectid = isset($_REQUEST["socid"])?$_REQUEST["socid"]:'';
$type = 'societe';
}
else if ($_REQUEST["id"] || $_REQUEST["ref"])
{
......
......@@ -1251,7 +1251,7 @@ function restrictedArea($user, $feature='societe', $objectid=0, $dbtablename='')
{
if (! $user->rights->fournisseur->commande->lire) $readok=0;
}
else
else if (! empty($features))
{
if (! $user->rights->$feature->lire) $readok=0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment