No transmormation of data objectid before calling trigger
This commit is contained in:
parent
2fb5de6136
commit
63b9384ef6
@ -186,14 +186,14 @@ function restrictedArea($user, $features, $objectid=0, $tableandshare='', $featu
|
|||||||
//print ", dbtablename=".$dbtablename.", dbt_socfield=".$dbt_keyfield.", dbt_select=".$dbt_select;
|
//print ", dbtablename=".$dbtablename.", dbt_socfield=".$dbt_keyfield.", dbt_select=".$dbt_select;
|
||||||
//print ", perm: ".$features."->".$feature2."=".($user->rights->$features->$feature2->lire)."<br>";
|
//print ", perm: ".$features."->".$feature2."=".($user->rights->$features->$feature2->lire)."<br>";
|
||||||
|
|
||||||
if ($dbt_select != 'rowid' && $dbt_select != 'id') $objectid = "'".$objectid."'";
|
|
||||||
|
|
||||||
// Get more permissions checks from hooks
|
// Get more permissions checks from hooks
|
||||||
$parameters=array('features'=>$features, 'objectid'=>$objectid, 'idtype'=>$dbt_select);
|
$parameters=array('features'=>$features, 'objectid'=>$objectid, 'idtype'=>$dbt_select);
|
||||||
$reshook=$hookmanager->executeHooks('restrictedArea',$parameters);
|
$reshook=$hookmanager->executeHooks('restrictedArea',$parameters);
|
||||||
if (! empty($hookmanager->resArray['result'])) return true;
|
if (! empty($hookmanager->resArray['result'])) return true;
|
||||||
if ($reshook > 0) return false;
|
if ($reshook > 0) return false;
|
||||||
|
|
||||||
|
if ($dbt_select != 'rowid' && $dbt_select != 'id') $objectid = "'".$objectid."'";
|
||||||
|
|
||||||
// Features/modules to check
|
// Features/modules to check
|
||||||
$featuresarray = array($features);
|
$featuresarray = array($features);
|
||||||
if (preg_match('/&/', $features)) $featuresarray = explode("&", $features);
|
if (preg_match('/&/', $features)) $featuresarray = explode("&", $features);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user