mirror of
https://github.com/itflow-org/itflow
synced 2026-03-06 05:44:52 +00:00
Redirect financials dashboard to clients page if user is a tech
This commit is contained in:
@@ -1,6 +1,17 @@
|
|||||||
<?php include("inc_all.php"); ?>
|
<?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)
|
function roundUpToNearestMultiple($n, $increment = 1000)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user