diff --git a/CHANGELOG.md b/CHANGELOG.md index 0afe9d0c..1ed35904 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ This file documents all notable changes made to ITFlow. ## [25.02] ### Fixed -- Fix report permissions for un-billed tickets +- Changed several reports over to the new permissions/roles system - Fixed empty task box showing for resolved/closed tickets ### Added / Changed diff --git a/includes/reports_side_nav.php b/includes/reports_side_nav.php index dd0c2b46..05ede460 100644 --- a/includes/reports_side_nav.php +++ b/includes/reports_side_nav.php @@ -15,81 +15,74 @@ diff --git a/report_budget.php b/report_budget.php index 9e1b2b83..861d6494 100644 --- a/report_budget.php +++ b/report_budget.php @@ -2,7 +2,7 @@ require_once "includes/inc_all_reports.php"; -validateAccountantRole(); +enforceUserPermission('module_financial'); if (isset($_GET['year'])) { $year = intval($_GET['year']); diff --git a/report_clients_with_balance.php b/report_clients_with_balance.php index 5f75a4a4..f9fc7bad 100644 --- a/report_clients_with_balance.php +++ b/report_clients_with_balance.php @@ -2,7 +2,7 @@ require_once "includes/inc_all_reports.php"; -validateAccountantRole(); +enforceUserPermission('module_financial'); ?> diff --git a/report_expense_by_vendor.php b/report_expense_by_vendor.php index 20038372..4d83d49b 100644 --- a/report_expense_by_vendor.php +++ b/report_expense_by_vendor.php @@ -2,7 +2,7 @@ require_once "includes/inc_all_reports.php"; -validateAccountantRole(); +enforceUserPermission('module_financial'); if (isset($_GET['year'])) { if ($_GET['year'] === 'all') { diff --git a/report_expense_summary.php b/report_expense_summary.php index 9abe15a9..09555e9f 100644 --- a/report_expense_summary.php +++ b/report_expense_summary.php @@ -2,7 +2,7 @@ require_once "includes/inc_all_reports.php"; -validateAccountantRole(); +enforceUserPermission('module_financial'); if (isset($_GET['year'])) { $year = intval($_GET['year']); diff --git a/report_income_by_client.php b/report_income_by_client.php index 16e0b42a..fffa8515 100644 --- a/report_income_by_client.php +++ b/report_income_by_client.php @@ -2,7 +2,7 @@ require_once "includes/inc_all_reports.php"; -validateAccountantRole(); +enforceUserPermission('module_financial'); if (isset($_GET['year'])) { if ($_GET['year'] === 'all') { diff --git a/report_income_summary.php b/report_income_summary.php index 2fc2a9b6..187fdf23 100644 --- a/report_income_summary.php +++ b/report_income_summary.php @@ -2,7 +2,7 @@ require_once "includes/inc_all_reports.php"; -validateAccountantRole(); +enforceUserPermission('module_financial'); if (isset($_GET['year'])) { $year = intval($_GET['year']); @@ -147,8 +147,7 @@ $sql_categories = mysqli_query($mysqli, "SELECT * FROM categories WHERE category - +