getSessUserId($_REQUEST[$config['authCookieName']]); $login = $gb->getSessLogin($_REQUEST[$config['authCookieName']]); $id = (!$_REQUEST['id'] ? $gb->storId : $_REQUEST['id']); #header("Content-type: text/plain"); print_r($_REQUEST); exit; #header("Content-type: text/plain"); echo $gb->dumpTree($id, ' ')."\n"; exit; // prefill data structure for template $tpldata = array( 'pathdata' => $gb->getPath($id), 'perms' => $gb->getObjPerms($id), 'actions' => $gb->getAllowedActions($gb->getObjType($id)), 'subjects' => $gb->getSubjects(), 'id' => $id, 'loggedAs' => $login, ); $tpldata['msg'] = $_SESSION['alertMsg']; unset($_SESSION['alertMsg']); #header("Content-type: text/plain"); print_r($tpldata); exit; #require_once"gbHtml_f.php"; // template follows: ?> Storage - permission editor

Permission editor

Path: $it) {?> /

0) foreach($tpldata['perms'] as $k=>$row) { $da=($row['type']=='A' ? 'allow' : ($row['type']=='D' ? 'deny' : $row['type']));?>
subject nameactionpermission
> remove
none
Add permission for action to subject