Update security.lib.php

This commit is contained in:
Laurent Destailleur 2018-05-10 11:32:08 +02:00 committed by GitHub
parent 0891766a3e
commit 7be804dcf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -333,8 +333,8 @@ function restrictedArea($user, $features, $objectid=0, $tableandshare='', $featu
// is linked to a company allowed to $user.
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))
return $ok ? 1 : accessforbidden();
$ok = checkUserAccessToObject($user, $featuresarray, $objectid, $tableandshare, $feature2, $dbt_keyfield, $dbt_select);
return $ok ? 1 : accessforbidden();
}
return 1;