Update security.lib.php
This commit is contained in:
parent
0891766a3e
commit
7be804dcf5
@ -333,8 +333,8 @@ function restrictedArea($user, $features, $objectid=0, $tableandshare='', $featu
|
|||||||
// is linked to a company allowed to $user.
|
// is linked to a company allowed to $user.
|
||||||
if (! empty($objectid) && $objectid > 0)
|
if (! empty($objectid) && $objectid > 0)
|
||||||
{
|
{
|
||||||
$ok = checkUserAccessToObject($user, $featuresarray, $objectid, $tableandshare, $feature2, $dbt_keyfield, $dbt_select); + if (!checkUserAccessToObject($user, $featuresarray, $objectid, $tableandshare, $feature2, $dbt_keyfield, $dbt_select))
|
$ok = checkUserAccessToObject($user, $featuresarray, $objectid, $tableandshare, $feature2, $dbt_keyfield, $dbt_select);
|
||||||
return $ok ? 1 : accessforbidden();
|
return $ok ? 1 : accessforbidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user