From 4b3619fb47e0035a7db2c534a5e3d534c1dae4c6 Mon Sep 17 00:00:00 2001 From: Kasun Chathuranga Date: Mon, 15 Jul 2013 09:28:00 +0530 Subject: [PATCH] Edit user group link should be shown only when menus feature is configured --- libraries/server_privileges.lib.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/libraries/server_privileges.lib.php b/libraries/server_privileges.lib.php index 41087bc5ce..84ecf59d92 100644 --- a/libraries/server_privileges.lib.php +++ b/libraries/server_privileges.lib.php @@ -2662,15 +2662,17 @@ function PMA_getTableBodyForUserRightsTable($db_rights, $link_edit, $link_export '' ) . ''; - if (empty($host['User'])) { - $html_output .= ''; - } else { - $html_output .= '' - . sprintf( - $link_edit_user_group, - urlencode($host['User']) - ) - . ''; + if ($GLOBALS['cfgRelation']['menuswork']) { + if (empty($host['User'])) { + $html_output .= ''; + } else { + $html_output .= '' + . sprintf( + $link_edit_user_group, + urlencode($host['User']) + ) + . ''; + } } $html_output .= '' . sprintf(