Skip to content
Snippets Groups Projects
Commit 96d90ce1 authored by Pegane Nestor's avatar Pegane Nestor
Browse files

FIX #7002 Added security clause

parent 4a5589e3
No related branches found
No related tags found
No related merge requests found
...@@ -82,11 +82,15 @@ if(isset($_REQUEST['id']) && !empty($_REQUEST['id'])) { ...@@ -82,11 +82,15 @@ if(isset($_REQUEST['id']) && !empty($_REQUEST['id'])) {
$orderstr = "order by coll_id desc"; $orderstr = "order by coll_id desc";
} }
//Query //Query
$securityClause = $_SESSION['user']['security']['letterbox_coll']['DOC']['where'];
$stmt = $db->query( $stmt = $db->query(
"SELECT * FROM " "SELECT fp.res_id, fp.coll_id, fp.fileplan_id, fp.position_id FROM "
. FILEPLAN_RES_POSITIONS_TABLE . FILEPLAN_RES_POSITIONS_TABLE ." fp, res_letterbox rl"
. " WHERE fileplan_id = ?" . " WHERE fp.res_id = rl.res_id"
. " AND position_id = ?" . " AND fp.fileplan_id = ?"
. " AND fp.position_id = ?"
. " AND (".$securityClause.")"
. " ".$orderstr . " ".$orderstr
,array($fileplan_id,$position_id)); ,array($fileplan_id,$position_id));
...@@ -287,8 +291,8 @@ if(isset($_REQUEST['id']) && !empty($_REQUEST['id'])) { ...@@ -287,8 +291,8 @@ if(isset($_REQUEST['id']) && !empty($_REQUEST['id'])) {
} }
//List //List
$listKey = 'list_id'; //Cl de la liste $listKey = 'list_id'; //Cl de la liste
$paramsTab = array(); //Initialiser le tableau de paramtres $paramsTab = array(); //Initialiser le tableau de paramtres
$paramsTab['bool_sortColumn'] = true; //Affichage Tri $paramsTab['bool_sortColumn'] = true; //Affichage Tri
$paramsTab['pageTitle'] = '<h2 style="margin-left:0px;">'.$description.':</h2><br/> ' $paramsTab['pageTitle'] = '<h2 style="margin-left:0px;">'.$description.':</h2><br/> '
.count($tab).' '._FOUND_DOC.'<br/>'; //Titre de la page .count($tab).' '._FOUND_DOC.'<br/>'; //Titre de la page
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment