Redirect financials dashboard to clients page if user is a tech

This commit is contained in:
Marcus Hill 2022-12-11 14:37:50 +00:00
parent 69dbb51e93
commit 63b8d9a16a
1 changed files with 12 additions and 1 deletions

View File

@ -1,6 +1,17 @@
<?php include("inc_all.php"); ?>
<?php
<?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 = 'clients.php';
</script>
<?php
exit();
}
function roundUpToNearestMultiple($n, $increment = 1000)
{