mirror of https://github.com/itflow-org/itflow
Redirect financials dashboard to clients page if user is a tech
This commit is contained in:
parent
69dbb51e93
commit
63b8d9a16a
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue