From: Daniel Hromada Date: Tue, 15 Mar 2011 22:25:09 +0000 (+0100) Subject: nodes merge X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=7a5cc9b5e221e87dd7933370e10c758ff356068d;p=mirrors%2FKyberia-bloodline.git nodes merge --- 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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!