Skip to content

Commit

Permalink
Fix navigation to previous pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Sevilla committed Jan 3, 2022
1 parent c160559 commit 03ad641
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion select_hpc.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
exit();
}

if ($_SESSION['user']->isAdmin()
|| $_SESSION['task_setting']->isEligibleForCAC()
|| $_SESSION['task_setting']->isEligibleForTStabilization($_SESSION['setting'])) {
$back = "post_processing.php";
} else {
$back = "task_parameter.php";
}

// fileserver related code
if (!isset($_SESSION['fileserver'])) {
$name = $_SESSION['user']->name();
Expand Down Expand Up @@ -177,7 +185,7 @@ class="
<input type="button" value="" class="icon previous"
onmouseover="TagToTip('ttSpanBack' )"
onmouseout="UnTip()"
onclick="document.location.href='post_processing.php'"/>
onclick="document.location.href='<?php echo $back;?>'"/>
<input type="button" value="" class="icon up"
onmouseover="TagToTip('ttSpanCancel' )"
onmouseout="UnTip()"
Expand Down

0 comments on commit 03ad641

Please sign in to comment.