[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 14/17: Code cleaning : remove code for "Plugi
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 14/17: Code cleaning : remove code for "Plugin only" users |
Date: |
Wed, 12 Aug 2015 13:23:44 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit a1c55cc515cb5e44497412cdbe732b0c1cfdf8af
Author: Dany De Bontridder <address@hidden>
Date: Tue Aug 11 12:30:29 2015 +0200
Code cleaning : remove code for "Plugin only" users
---
include/class_user.php | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/include/class_user.php b/include/class_user.php
index cbe9fdf..f183c7f 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.="<TR class=\"$tr\">";
- [Noalyss-commit] [noalyss] branch master updated (0ee7d7a -> 1ddde7c), Dany De Bontridder, 2015/08/12
- [Noalyss-commit] [noalyss] 03/17: Cosmetic, Dany De Bontridder, 2015/08/12
- [Noalyss-commit] [noalyss] 04/17: Cosmetic ; change appearance login screen, Dany De Bontridder, 2015/08/12
- [Noalyss-commit] [noalyss] 06/17: Move DEBUG and LOGINPUT to config.inc.php, Dany De Bontridder, 2015/08/12
- [Noalyss-commit] [noalyss] 02/17: Add variable to force the reload of CSS and javascript when version changes, Dany De Bontridder, 2015/08/12
- [Noalyss-commit] [noalyss] 09/17: Use a variable for an absolute path for performance reason NOALYSS_INCLUDE NOALYSS_HOME NOALYSS_PLUGIN, Dany De Bontridder, 2015/08/12
- [Noalyss-commit] [noalyss] 10/17: Use a variable for an absolute path for performance reason NOALYSS_INCLUDE NOALYSS_HOME NOALYSS_PLUGIN, Dany De Bontridder, 2015/08/12
- [Noalyss-commit] [noalyss] 12/17: show cross to remove a tag, Dany De Bontridder, 2015/08/12
- [Noalyss-commit] [noalyss] 13/17: Admin can modify any document + repository, Dany De Bontridder, 2015/08/12
- [Noalyss-commit] [noalyss] 07/17: Move DEBUG and LOGINPUT to config.inc.php, by default error are shown, Dany De Bontridder, 2015/08/12
- [Noalyss-commit] [noalyss] 14/17: Code cleaning : remove code for "Plugin only" users,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 01/17: Add variable to own, Dany De Bontridder, 2015/08/12
- [Noalyss-commit] [noalyss] 05/17: translation, Dany De Bontridder, 2015/08/12
- [Noalyss-commit] [noalyss] 16/17: highlight, Dany De Bontridder, 2015/08/12
- [Noalyss-commit] [noalyss] 11/17: show cross to remove a tag, Dany De Bontridder, 2015/08/12
- [Noalyss-commit] [noalyss] 15/17: Code documentation, Dany De Bontridder, 2015/08/12
- [Noalyss-commit] [noalyss] 17/17: Use a variable for an absolute path for performance reason NOALYSS_INCLUDE NOALYSS_HOME NOALYSS_PLUGIN New logo and cosmetic, Dany De Bontridder, 2015/08/12
- [Noalyss-commit] [noalyss] 08/17: Use a variable for an absolute path for performance reason NOALYSS_INCLUDE NOALYSS_HOME NOALYSS_PLUGIN, Dany De Bontridder, 2015/08/12