From 7a5cc9b5e221e87dd7933370e10c758ff356068d Mon Sep 17 00:00:00 2001 From: Daniel Hromada Date: Tue, 15 Mar 2011 23:25:09 +0100 Subject: [PATCH] nodes merge --- wwwroot/nodes.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/wwwroot/nodes.php b/wwwroot/nodes.php index f343695..29b6478 100644 --- a/wwwroot/nodes.php +++ b/wwwroot/nodes.php @@ -137,14 +137,12 @@ if (isset($_SESSION['cube_vector']) && ($_SESSION['cube_vector'])) { @include_once(INCLUDE_DIR.'mail_rss.inc'); //haluz... //checking permissions -function _checkPermissions() -{ - global $permissions, $node; - require(INCLUDE_DIR.'permissions.inc'); - $permissions=permissions::checkPermissions($node); - $permissions['h']=permissions::isHierarch($node); +include_once(BACKEND_DIR.'/'.DB_TYPE.'/permissions.inc'); +$permissions=permissions::checkPerms($node); +if ($_SESSION['debugging']) { + print_r($permissions); } -_checkPermissions(); + // DO NOT MESS WITH THIS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -- 2.30.2