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