From 05d4825e5850d2a67a3d4e2eefc971d257d5112d Mon Sep 17 00:00:00 2001 From: vogelor Date: Mon, 10 May 2010 18:37:53 +0000 Subject: [PATCH] The new version is only displayed for the admin (aargh) --- interface/web/dashboard/dashboard.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/interface/web/dashboard/dashboard.php b/interface/web/dashboard/dashboard.php index 97795a8056..f2d2f4d6af 100644 --- a/interface/web/dashboard/dashboard.php +++ b/interface/web/dashboard/dashboard.php @@ -87,12 +87,14 @@ $app->tpl->setVar('welcome_user', $welcome); $info = array(); /* - * Check the ISPConfig-Version + * Check the ISPConfig-Version (only for the admin) */ -$new_version = @file_get_contents('http://www.ispconfig.org/downloads/ispconfig3_version.txt'); -$new_version = trim($new_version); -if($new_version != ISPC_APP_VERSION) { - $info[] = array('info_msg' => 'There is a new Version of ISPConfig 3 available! See more...'); +if($_SESSION["s"]["user"]["typ"] == 'admin') { + $new_version = @file_get_contents('http://www.ispconfig.org/downloads/ispconfig3_version.txt'); + $new_version = trim($new_version); + if($new_version != ISPC_APP_VERSION) { + $info[] = array('info_msg' => 'There is a new Version of ISPConfig 3 available! See more...'); + } } $app->tpl->setloop('info', $info); -- GitLab