nodes merge
authorDaniel Hromada <hromi@Aphrodité.(none)>
Tue, 15 Mar 2011 22:25:09 +0000 (23:25 +0100)
committerDaniel Hromada <hromi@Aphrodité.(none)>
Tue, 15 Mar 2011 22:25:09 +0000 (23:25 +0100)
wwwroot/nodes.php

index f343695c4182986727aa797cf2a3b6e7a8c8e0ad..29b6478b5c04359149d70c7c5b7824607914d5a5 100644 (file)
@@ -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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This page took 0.129181 seconds and 4 git commands to generate.