[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 24/33: Gestion->suivi, global administrators
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 24/33: Gestion->suivi, global administrators can access all the documents. Improve search |
Date: |
Thu, 11 Nov 2021 06:02:50 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 16f1eba403efa2883ac7559296fbf16b1e2bb857
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Oct 24 18:20:47 2021 +0200
Gestion->suivi, global administrators can access all the documents.
Improve search
---
include/class/follow_up.class.php | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/include/class/follow_up.class.php
b/include/class/follow_up.class.php
index d33e22d..6e0d0fb 100644
--- a/include/class/follow_up.class.php
+++ b/include/class/follow_up.class.php
@@ -104,6 +104,9 @@ class Follow_Up
$profile=$cn->get_value("select p_id from profile_user where
user_name=$1", array($g_user->login));
if ($profile=='')
die("Security");
+ if ( $g_user->isAdmin() == 1) {
+ return "(true)";
+ }
if ($p_mode=='R')
{
$sql=" (ag_dest in (select p_granted from user_sec_action_profile
where p_id=$profile ) ) ";
@@ -1262,6 +1265,7 @@ class Follow_Up
{
if ($p_array==null) $p_array=$_GET;
$http=new HttpInput();
+ $http->set_array($p_array);
$search_docid=0; // search for a document
$action_query="";
$ag_state=""; //<! selected status of the event , if not set or equal
to -1 , it is all of them
@@ -1273,9 +1277,9 @@ class Follow_Up
$search_docid=$p_array['ag_id'];
return $action_query;
}
- if (isset($_REQUEST['action_query']))
+ if (isset($_REQUEST['action_query']) &&
trim($_REQUEST['action_query']) != "")
{
- $action_query = $http->request('action_query');
+ $action_query = $http->extract('action_query');
// if a query is request build the sql stmt
$action_query="and (ag_title ilike
'%".sql_string($action_query)."%' ".
"or ag_ref ='".trim(sql_string($action_query)).
@@ -1292,7 +1296,7 @@ class Follow_Up
{
$fiche=new Fiche($cn);
- $fiche->get_by_qcode($http->request('qcode'));
+ $fiche->get_by_qcode($http->extract('qcode'));
// if quick code not found then nothing
if ($fiche->id==0)
$str=' and false ';
@@ -1359,6 +1363,9 @@ class Follow_Up
{
$action_query .= Follow_Up::filter_by_tag($cn, $p_array);
}
+ if ( DEBUGNOALYSS > 1) {
+ print "QUERY = [ $action_query.$str]";
+ }
return $action_query.$str;
}
- [Noalyss-commit] [noalyss] 20/33: Cosmetic #0002080 : NOT-FOUND, (continued)
- [Noalyss-commit] [noalyss] 20/33: Cosmetic #0002080 : NOT-FOUND, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 22/33: Cosmetic #0002081: PRINTTVA : l'export PDF de la TVA, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 23/33: Fix : date before 2000 throws an exception, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 25/33: Improve ACC_LEDGER compute internal ledger code in base 36, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 27/33: Operation ANC : Bug with decimal, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 28/33: Bug #2085: Comptabilité analytique : erreur dans les balances croisées, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 29/33: Task #0002087: Improve COMPTA/MENUFIN/FREC, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 30/33: Task #0002088: Export PDF de ANCBCC, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 17/33: Cosmetic bug : if no rows found , throw a warning, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 19/33: Task #0002068: Pas de champ recherche dans la liste de fiches, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 24/33: Gestion->suivi, global administrators can access all the documents. Improve search,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 26/33: Cosmetic Add close button, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 33/33: CANAL : add symbol for operation : history card & accounting, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 31/33: Cosmetic : button close, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 32/33: Empty upgrade.sql, Dany De Bontridder, 2021/11/11