Skip to content

Commit 05d4825

Browse files
author
vogelor
committed
The new version is only displayed for the admin (aargh)
1 parent d1d9bc5 commit 05d4825

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

interface/web/dashboard/dashboard.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,14 @@
8787
$info = array();
8888

8989
/*
90-
* Check the ISPConfig-Version
90+
* Check the ISPConfig-Version (only for the admin)
9191
*/
92-
$new_version = @file_get_contents('http://www.ispconfig.org/downloads/ispconfig3_version.txt');
93-
$new_version = trim($new_version);
94-
if($new_version != ISPC_APP_VERSION) {
95-
$info[] = array('info_msg' => 'There is a new Version of ISPConfig 3 available! <a href="http://www.ispconfig.org">See more...</a>');
92+
if($_SESSION["s"]["user"]["typ"] == 'admin') {
93+
$new_version = @file_get_contents('http://www.ispconfig.org/downloads/ispconfig3_version.txt');
94+
$new_version = trim($new_version);
95+
if($new_version != ISPC_APP_VERSION) {
96+
$info[] = array('info_msg' => 'There is a new Version of ISPConfig 3 available! <a href="http://www.ispconfig.org">See more...</a>');
97+
}
9698
}
9799

98100
$app->tpl->setloop('info', $info);

0 commit comments

Comments
 (0)