Refactor user session handling and permissions management

- Updated session variables to use 'authorization' array instead of 'username' for user identification across multiple files.
- Introduced a new function `getUserPermissions` to consolidate user permissions retrieval based on assigned roles.
- Modified API calls to use the new authorization structure and updated endpoints to v2.
- Enhanced language support by adding 'PL' to the list of supported languages.
- Cleaned up redundant code and improved session management during user login and registration processes.
- Added a new API endpoint for fetching user permissions based on user ID.
This commit is contained in:
“VeLiTi”
2026-01-19 15:29:16 +01:00
parent 782050c3ca
commit 24481279d5
99 changed files with 683 additions and 539 deletions

View File

@@ -4,6 +4,9 @@
// All individual views and APIs - Profile ++++++++++++++
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++
$all_views = [
"access_element",
"access_element_manage",
"access_elements",
"account",
"account_manage",
"accounts",
@@ -112,6 +115,7 @@ $all_views = [
"register",
"render_service_report",
"report_build",
"report_builder",
"report_contracts_billing",
"report_healthindex",
"report_usage",
@@ -122,6 +126,7 @@ $all_views = [
"rma_history_manage",
"rma_manage",
"rmas",
"role_access_permissions",
"sales",
"security",
"service",
@@ -149,6 +154,10 @@ $all_views = [
"user",
"user_credentials",
"user_manage",
"user_role",
"user_role_assignments",
"user_role_manage",
"user_roles",
"users",
"vin",
"webhook_mollie",