Implement RBAC migration and role management enhancements

- Added AJAX functionality to fetch role permissions for copying.
- Introduced system role management with permission checks for updates.
- Implemented role deletion with confirmation modal and backend handling.
- Enhanced user role assignment migration scripts to transition from legacy profiles to RBAC.
- Created SQL migration scripts for user roles and permissions mapping.
- Updated user interface to support new role management features including copy permissions and system role indicators.
This commit is contained in:
“VeLiTi”
2026-01-27 15:10:21 +01:00
parent aeda4e4cb9
commit f7a91737bc
30 changed files with 1285 additions and 236 deletions

View File

@@ -104,7 +104,7 @@ if (isset($_POST['email_invoice'])) {
$attachment = $dompdf->output();
$attachment_name = $file_name . '.pdf';
$header_redirect = 'Location: index.php?page=order&id=' . $order_id . '&success=invoice_sent';
$header_redirect = 'Location: index.php?page=order&txn_id=' . $order_id . '&success=invoice_sent';
// Send to PHPMailer
send_mail($to, $subject, $message, $attachment, $attachment_name);
@@ -120,7 +120,7 @@ if (isset($_POST['email_invoice_to_admin'])) {
$attachment = $dompdf->output();
$attachment_name = $file_name . '.pdf';
$header_redirect = 'Location: index.php?page=order&id=' . $order_id . '&success=invoice_sent_admin';
$header_redirect = 'Location: index.php?page=order&txn_id=' . $order_id . '&success=invoice_sent_admin';
// Send to bookkeeping if configured
if (invoice_bookkeeping && email_bookkeeping) {
@@ -144,7 +144,7 @@ if (isset($_GET['show_invoice'])) {
}
// If no action specified, redirect back
header('Location: index.php?page=order&id=' . $order_number);
header('Location: index.php?page=order&txn_id=' . $order_number);
exit;
?>