[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 13/17: Admin can modify any document + reposi
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 13/17: Admin can modify any document + repository |
Date: |
Wed, 12 Aug 2015 13:23:44 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 40ffc3a965fa64598cb395e1477370914443f72d
Author: Dany De Bontridder <address@hidden>
Date: Tue Aug 11 11:24:28 2015 +0200
Admin can modify any document + repository
---
include/class_user.php | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/class_user.php b/include/class_user.php
index ba102f8..cbe9fdf 100644
--- a/include/class_user.php
+++ b/include/class_user.php
@@ -1121,6 +1121,7 @@ class User
*/
function can_write_action($dtoc)
{
+ if ( $this->Admin() == 1 ) return true;
$profile = $this->get_profile();
$r = $this->db->get_value(" select count(*) from action_gestion
where ag_id=$1 and ag_dest in
(select p_granted from user_sec_action_profile
where ua_right='W' and p_id=$2) ", array($dtoc, $profile));
@@ -1136,6 +1137,7 @@ class User
*/
function can_read_action($dtoc)
{
+ if ( $this->Admin() == 1 ) return true;
$profile = $this->get_profile();
$r = $this->db->get_value(" select count(*) from action_gestion
where ag_id=$1 and (ag_dest in
(select p_granted from user_sec_action_profile
where p_id=$2) or ag_owner=$3)", array($dtoc, $profile, $this->login));
@@ -1150,6 +1152,7 @@ class User
*/
function can_write_repo($p_repo)
{
+ if ( $this->Admin() == 1 ) return true;
$profile=$this->get_profile();
$r=$this->db->get_value("select count(*)
from profile_sec_repository
@@ -1168,6 +1171,7 @@ class User
*/
function can_read_repo($p_repo)
{
+ if ( $this->Admin() == 1 ) return true;
$profile=$this->get_profile();
$r=$this->db->get_value("select count(*)
from profile_sec_repository
- [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 <=
- [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, 2015/08/12
- [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