commit 18d9ffb7b5039c28e062328df4ca324c50c5d8c6
parent 2c32a74a09bd74847ccd90703584acdcf97fd52f
Author: dankert <devnull@localhost>
Date: Thu, 19 Mar 2009 05:35:18 +0100
Abbruch, wenn Benutzer kein Administrator ist.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/serviceClasses/AdministrationTree.class.php b/serviceClasses/AdministrationTree.class.php
@@ -34,6 +34,9 @@ class AdministrationTree extends AbstractTree
function root()
{
+ if ( !$this->userIsAdmin )
+ Http::notAuthorized('Administration-Tree is only visible for admins.');
+
$treeElement = new TreeElement();
$treeElement->text = lang('GLOBAL_ADMINISTRATION');
$treeElement->description = lang('GLOBAL_ADMINISTRATION');