mirror of
https://github.com/itflow-org/itflow
synced 2026-03-22 05:25:39 +00:00
General refactoring/tidy spacing
This commit is contained in:
@@ -1,13 +1,8 @@
|
|||||||
<?php include("inc_all.php");
|
<?php include("inc_all.php");
|
||||||
|
|
||||||
// Quick fix to prevent non-admins (i.e. techs) seeing financials - redirect to client list
|
// Enforce accountant / admin role for the financial dashboard
|
||||||
// To be removed when we have a proper technical dashboard for techs
|
if ($_SESSION['user_role'] != 3 && $_SESSION['user_role'] != 1) {
|
||||||
if ($_SESSION['user_role'] != 3) { ?>
|
exit('<script type="text/javascript">window.location.href = \'dashboard_technical.php\';</script>');
|
||||||
<script type="text/javascript">
|
|
||||||
window.location.href = 'dashboard_technical.php';
|
|
||||||
</script>
|
|
||||||
<?php
|
|
||||||
exit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET['year'])) {
|
if (isset($_GET['year'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user