Update security.lib.php

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

View File

@ -125,8 +125,8 @@ function restrictedArea($user, $features, $objectid=0, $tableandshare='', $featu
$hookmanager->initHooks(array('permissions'));
$parameters=array('features'=>$features, 'objectid'=>$objectid, 'idtype'=>$dbt_select);
$reshook=$hookmanager->executeHooks('restrictedArea',$parameters);
if (isset($hookmanager->resArray['result']) && empty($hookmanager->resArray['result']) return false;
if ($reshook > 0) return true;
if (! empty($hookmanager->resArray['result']) return true;
if ($reshook > 0) return false;
// Features/modules to check
$featuresarray = array($features);