If user doesn't have site configuration access, then don't show the site configuration link for each app

This commit is contained in:
alpeb 2004-09-10 17:51:28 +00:00
parent 12223430f7
commit b8fcaa3c08

View File

@ -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();
}