diff --git a/phpgwapi/templates/edge-it/navbar.inc.php b/phpgwapi/templates/edge-it/navbar.inc.php index 596031089a..4890ccaeae 100644 --- a/phpgwapi/templates/edge-it/navbar.inc.php +++ b/phpgwapi/templates/edge-it/navbar.inc.php @@ -342,6 +342,10 @@ } else { + if (strtolower($item_text) == 'grant access' && $GLOBALS['egw_info']['server']['deny_user_grants_access']) { + return; + } + $var['icon_or_star']='ball'; $var['target'] = ''; if(is_array($item_link)) diff --git a/phpgwapi/templates/idots/navbar.inc.php b/phpgwapi/templates/idots/navbar.inc.php index 78e214e5d5..f280594761 100644 --- a/phpgwapi/templates/idots/navbar.inc.php +++ b/phpgwapi/templates/idots/navbar.inc.php @@ -356,6 +356,10 @@ } else { + if (strtolower($item_text) == 'grant access' && $GLOBALS['egw_info']['server']['deny_user_grants_access']) { + return; + } + $var['icon_or_star']='ball'; $var['target'] = ''; if(is_array($item_link)) diff --git a/phpgwapi/templates/idots2/navbar.inc.php b/phpgwapi/templates/idots2/navbar.inc.php index dc14124f06..a8f81e1ff0 100755 --- a/phpgwapi/templates/idots2/navbar.inc.php +++ b/phpgwapi/templates/idots2/navbar.inc.php @@ -599,6 +599,10 @@ } else { + if (strtolower($item_text) == 'grant access' && $GLOBALS['egw_info']['server']['deny_user_grants_access']) { + return; + } + $var['icon_or_star']='ball'; $var['target'] = ''; if(is_array($item_link)) diff --git a/phpgwapi/templates/jerryr/navbar.inc.php b/phpgwapi/templates/jerryr/navbar.inc.php index ae2fc518a3..615315680c 100644 --- a/phpgwapi/templates/jerryr/navbar.inc.php +++ b/phpgwapi/templates/jerryr/navbar.inc.php @@ -343,6 +343,10 @@ } else { + if (strtolower($item_text) == 'grant access' && $GLOBALS['egw_info']['server']['deny_user_grants_access']) { + return; + } + $var['icon_or_star']='ball'; $var['target'] = ''; if(is_array($item_link)) diff --git a/phpgwapi/templates/literati/navbar.inc.php b/phpgwapi/templates/literati/navbar.inc.php index 1e8807bc6b..b0b3cc3c11 100644 --- a/phpgwapi/templates/literati/navbar.inc.php +++ b/phpgwapi/templates/literati/navbar.inc.php @@ -179,6 +179,10 @@ } else { + if (strtolower($item_text) == 'grant access' && $GLOBALS['egw_info']['server']['deny_user_grants_access']) { + return; + } + $var['icon_or_star']='*'; $var['lang_item']=lang($item_text); $var['item_link']=$item_link; diff --git a/phpgwapi/templates/prisma/navbar.inc.php b/phpgwapi/templates/prisma/navbar.inc.php index 49129ece47..c774d5881d 100644 --- a/phpgwapi/templates/prisma/navbar.inc.php +++ b/phpgwapi/templates/prisma/navbar.inc.php @@ -348,6 +348,10 @@ } else { + if (strtolower($item_text) == 'grant access' && $GLOBALS['egw_info']['server']['deny_user_grants_access']) { + return; + } + $var['icon_or_star']='ball'; $var['target'] = ''; if(is_array($item_link))