minor change

This commit is contained in:
tomas 2005-04-22 00:16:45 +00:00
parent 4c19a1c60f
commit 1b211176e8

View file

@ -23,7 +23,7 @@
Author : $Author: tomas $ Author : $Author: tomas $
Version : $Revision: 1.15 $ Version : $Revision: 1.16 $
Location : $ $ Location : $ $
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
@ -33,7 +33,7 @@ require_once"gbHtml_h.php";
* storageServer WWW-form interface * storageServer WWW-form interface
* *
* @author $Author: tomas $ * @author $Author: tomas $
* @version $Revision: 1.15 $ * @version $Revision: 1.16 $
* @see Alib * @see Alib
* @see GreenBox * @see GreenBox
*/ */
@ -363,7 +363,7 @@ switch($_REQUEST['act']){
* @param allowDeny char, A or D * @param allowDeny char, A or D
*/ */
case"addPerm"; case"addPerm";
$parid = $gb->getparent($_REQUEST['oid']); $parid = $gb->getParent($_REQUEST['oid']);
$redirUrl="gbHtmlPerms.php?id=$id"; $redirUrl="gbHtmlPerms.php?id=$id";
if(!$gb->checkPerm($userid, 'editPerms', $parid)){ if(!$gb->checkPerm($userid, 'editPerms', $parid)){
$_SESSION['alertMsg']='Access denied.'; $_SESSION['alertMsg']='Access denied.';
@ -383,7 +383,7 @@ switch($_REQUEST['act']){
* @param permid int, local id of permission record * @param permid int, local id of permission record
*/ */
case"removePerm"; case"removePerm";
$parid = $gb->getparent($_REQUEST['oid']); $parid = $gb->getParent($_REQUEST['oid']);
if($gb->checkPerm($userid, 'editPerms', $parid)) if($gb->checkPerm($userid, 'editPerms', $parid))
$gb->removePerm($_REQUEST['permid']); $gb->removePerm($_REQUEST['permid']);
else $_SESSION['alertMsg']='Access denied.'; else $_SESSION['alertMsg']='Access denied.';