浏览代码

Better handling of two cases:
- user not authorized to see a particular request (not hers/his)
- user not authorized to use a service

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@869 a333f486-631f-4898-b8df-5754b55c2be0

dflaven 14 年之前
父节点
当前提交
5a7e9d3921
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      portal/index.php

+ 3 - 4
portal/index.php

@@ -271,9 +271,8 @@ EOF
 	}
 	else
 	{
-		echo "<pre>\n";
-		print_r($aParameters);
-		echo "</pre>\n";
+		// User not authorized to use this service ?
+		DisplayMainMenu($oP);
 	}
 }
 
@@ -681,7 +680,7 @@ function RequestDetails(WebPage $oP, $id)
 	$oRequest = FindRequest($id);
 	if (!is_object($oRequest))
 	{
-		echo "Request not found !";
+		DisplayMainMenu($oP);
 		return;
 	}
 	$iDefaultStep = 0;