From b8fcaa3c0853483fc99e957288a1793fff40a34b Mon Sep 17 00:00:00 2001 From: alpeb Date: Fri, 10 Sep 2004 17:51:28 +0000 Subject: [PATCH] If user doesn't have site configuration access, then don't show the site configuration link for each app --- admin/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/index.php b/admin/index.php index 0e36624b0d..ed9b7df1ea 100755 --- a/admin/index.php +++ b/admin/index.php @@ -84,7 +84,11 @@ while(list($text,$url) = each($file)) { - section_item($url,lang($text)); + // If user doesn't have application configuration access, then don't show the configuration links + if (!preg_match('/admin\.uiconfig/', $url) || !$GLOBALS['phpgw']->acl->check('site_config_access',1,'admin')) + { + section_item($url,lang($text)); + } } section_end(); }