Update security.lib.php

This commit is contained in:
Laurent Destailleur 2018-05-10 11:31:27 +02:00 committed by GitHub
parent ea4c48047a
commit 0891766a3e
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)
{
if (!checkUserAccessToObject($user, $featuresarray, $objectid, $tableandshare, $feature2, $dbt_keyfield, $dbt_select))
accessforbidden();
$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();
}
return 1;