Skip to content
Snippets Groups Projects
Commit ca90e5eb authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #27 update version only in superadmin

parent 85a7a3d4
No related branches found
No related tags found
No related merge requests found
...@@ -124,9 +124,6 @@ foreach ($tags as $key => $value) { ...@@ -124,9 +124,6 @@ foreach ($tags as $key => $value) {
} ?> } ?>
</select> </select>
<?php <?php
if ($_SESSION['user']['UserId'] != 'superadmin') {
echo _CONNECT_YOU_IN_SUPERADMIN;
}
} else { } else {
echo _NO_AVAILABLE_TAG_TO_UPDATE . '<br />'; echo _NO_AVAILABLE_TAG_TO_UPDATE . '<br />';
} }
...@@ -139,7 +136,11 @@ foreach ($tags as $key => $value) { ...@@ -139,7 +136,11 @@ foreach ($tags as $key => $value) {
<div align="center" style="margin-bottom:150px"> <div align="center" style="margin-bottom:150px">
<?php <?php
if ($isAnyAvailableTag && count($tags)>0) { if ($isAnyAvailableTag && count($tags)>0) {
echo '<a style="margin-top:100px" href="'.$_SESSION['config']['coreurl'].'install/index.php?step=update_language"><input class="button" value="'._CLICK_HERE_TO_GO_TO_UPDATE_MANAGEMENT.'" type="button"></a>'; if ($_SESSION['user']['UserId'] != 'superadmin') {
echo _CONNECT_YOU_IN_SUPERADMIN;
} else {
echo '<a style="margin-top:100px" href="'.$_SESSION['config']['coreurl'].'install/index.php?step=update_language"><input class="button" value="'._CLICK_HERE_TO_GO_TO_UPDATE_MANAGEMENT.'" type="button"></a>';
}
} }
if ($isAnyAvailableVersion) { if ($isAnyAvailableVersion) {
......
...@@ -39,11 +39,11 @@ if ($_SESSION['user']['UserId'] <> 'superadmin') { ...@@ -39,11 +39,11 @@ if ($_SESSION['user']['UserId'] <> 'superadmin') {
<div class="contentBlock" id="welcome"> <div class="contentBlock" id="welcome">
<p> <p>
<div id="buttons"> <div id="buttons">
<div style="float: left;" class="previousButton" id="previous"> <!-- <div style="float: left;" class="previousButton" id="previous">
<a href="#" onClick="goTo('index.php?step=update_deploy');"> <a href="#" onClick="goTo('index.php?step=update_deploy');">
<?php echo _PREVIOUS_INSTALL;?> <?php echo _PREVIOUS_INSTALL;?>
</a> </a>
</div> </div> -->
<div style="float: right;" class="nextButton" id="start"> <div style="float: right;" class="nextButton" id="start">
<a href="#" onClick="goTo('../index.php');"> <a href="#" onClick="goTo('../index.php');">
<?php echo _START_MEP_1_3;?> <?php echo _START_MEP_1_3;?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment