mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Prevent tech/accountant from performing certain tasks as per access matrix
This commit is contained in:
@@ -3,6 +3,14 @@
|
||||
include("config.php");
|
||||
include_once("functions.php");
|
||||
include("check_login.php");
|
||||
|
||||
if($session_user_role != 3){
|
||||
$_SESSION['alert_type'] = "danger";
|
||||
$_SESSION['alert_message'] = "You are not permitted to do that!";
|
||||
header("Location: index.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
include("header.php");
|
||||
include("top_nav.php");
|
||||
include("admin_side_nav.php");
|
||||
|
||||
Reference in New Issue
Block a user