From a1c55cc515cb5e44497412cdbe732b0c1cfdf8af Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Tue, 11 Aug 2015 12:30:29 +0200 Subject: [PATCH] Code cleaning : remove code for "Plugin only" users --- include/class_user.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/include/class_user.php b/include/class_user.php index cbe9fdfaa..f183c7fce 100644 --- a/include/class_user.php +++ b/include/class_user.php @@ -905,7 +905,7 @@ class User * default is false * \return * - L for administrator (local and global) - * - P for extension only + * - X no access * - R regular user */ @@ -916,7 +916,7 @@ class User return 'L'; $cn = new Database(); - $dossier = $cn->get_value("select 'L' from jnt_use_dos where dos_id=$1 and use_id=$2", array($p_dossier_id, $this->id)); + $dossier = $cn->get_value("select 'R' from jnt_use_dos where dos_id=$1 and use_id=$2", array($p_dossier_id, $this->id)); $dossier = ($dossier == '') ? 'X' : $dossier; if ($dossier == 'X') { @@ -992,14 +992,7 @@ class User $tr = "odd"; else $tr = "even"; - if ($this->check_dossier($id) != 'P') - { - $target = "do.php?gDossier=$id"; - } - else - { - $target = "extension.php?gDossier=$id"; - } + $target = "do.php?gDossier=$id"; $result.="";