Refactor profile definitions and views for improved organization and consistency
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
<?php
|
||||
/*Standard*/
|
||||
define('standard_profile','dashboard,profile,equipments,equipment,histories,history,firmwaretool,products_software,servicereports,servicereport,application');
|
||||
define('standard_profile','dashboard,profile,application,firmwaretool,histories,history,servicereport,servicereports,equipment,equipments,products_software');
|
||||
/*Superuser*/
|
||||
define('superuser_profile','dashboard,profile,assets,equipments,equipment,equipment_manage,equipment_manage_edit,equipments_mass_update,histories,history,history_manage,firmwaretool,products,products_versions,products_software,product,product_manage,servicereports,servicereport,admin,partners,partner,users,user,user_manage,marketing,application');
|
||||
define('superuser_profile','admin,dashboard,profile,application,assets,firmwaretool,histories,history,history_manage,marketing,partner,partners,servicereport,servicereports,equipment,equipment_manage,equipment_manage_edit,equipments,equipments_mass_update,product,product_manage,products,products_software,products_versions,user,user_manage,users');
|
||||
/*Admin*/
|
||||
define('admin_profile','dashboard,profile,buildtool,sales,accounts,account,contracts,contract,contract_manage,cartests,cartest,cartest_manage,assets,equipments,equipment,equipment_healthindex,equipment_data,equipment_manage,equipment_manage_edit,equipments_mass_update,histories,history,history_manage,firmwaretool,rmas,rma,rma_manage,rma_history,rma_history_manage,buildtool,products,products_versions,products_software,product,product_manage,servicereports,servicereport,admin,partners,partner,users,user,user_manage,communications,communication,communication_send,marketing,reporting,report_build,report_contracts_billing,report_healthindex,changelog,application');
|
||||
define('admin_profile','account,accounts,admin,dashboard,profile,application,assets,buildtool,buildtool,cartest,cartest_manage,cartests,changelog,communication,communication_send,communications,firmwaretool,histories,history,history_manage,marketing,partner,partners,sales,servicereport,servicereports,contract,contract_manage,contracts,equipment,equipment_data,equipment_healthindex,equipment_manage,equipment_manage_edit,equipments,equipments_mass_update,product,product_manage,products,products_software,products_versions,report_build,report_contracts_billing,report_healthindex,reporting,rma,rma_history,rma_history_manage,rma_manage,rmas,user,user_manage,users');
|
||||
/*AdminPlus*/
|
||||
define('adminplus_profile','dashboard,profile,buildtool,sales,accounts,account,contracts,contract,contract_manage,billing,cartests,cartest,cartest_manage,dealers,dealers_media,dealer,dealer_manage,assets,equipments,equipment,equipment_healthindex,equipment_data,equipment_manage,equipment_manage_edit,equipments_mass_update,histories,history,history_manage,firmwaretool,rmas,rma,rma_manage,rma_history,rma_history_manage,buildtool,products,products_versions,products_software,products_software_versions,products_software_version,products_software_version_manage,products_attributes,products_attributes_items,products_attributes_manage,products_configurations,products_categories,products_media,product,product_manage,pricelists,pricelists_items,pricelists_manage,catalog,categories,category,discounts,discount,shipping,shipping_manage,servicereports,servicereport,admin,partners,partner,users,user,user_manage,communications,communication,communication_send,marketing,reporting,report_build,report_contracts_billing,report_healthindex,report_usage,config,settings,logfile,changelog,language,translations,translations_details,translation_manage,media,media_manage,media_scanner,application,maintenance,uploader,profiles,vin,shopping_cart,checkout,placeorder,taxes,transactions,transactions_items,invoice,order,orders,identity');
|
||||
define('adminplus_profile','account,account_manage,accounts,admin,config,dashboard,profile,settings,api,application,appointment,assets,billing,buildtool,buildtool,cartest,cartest_manage,cartests,catalog,categories,category,changelog,checkout,com_log,communication,communication_send,communications,cronjob,debug,dev,discount,discounts,firmwaretool,generate_download_token,histories,history,history_manage,identity,identity_dealers,invoice,language,logfile,mailer,maintenance,marketing,media,media_manage,media_scanner,media_upload,order,orders,partner,partners,placeorder,pricelists,pricelists_items,pricelists_manage,profiles,register,render_service_report,reset,sales,security,servicereport,servicereports,shipping,shipping_manage,shopping_cart,software_available,software_download,software_update,tax,taxes,test,transactions,transactions_items,translation_manage,translations,translations_details,unscribe,upgrades,uploader,vin,contract,contract_manage,contracts,dealer,dealer_manage,dealers,dealers_media,equipment,equipment_data,equipment_healthindex,equipment_manage,equipment_manage_edit,equipments,equipments_mass_update,product,product_manage,products,products_attributes,products_attributes_items,products_attributes_manage,products_categories,products_configurations,products_media,products_software,products_software_assignment,products_software_assignments,products_software_assignments,products_software_licenses,products_software_upgrade_paths,products_software_upgrade_paths_manage,products_software_version,products_software_version_access_rules_manage,products_software_version_manage,products_software_versions,products_versions,report_build,report_contracts_billing,report_healthindex,report_usage,reporting,rma,rma_history,rma_history_manage,rma_manage,rmas,user,user_credentials,user_manage,users');
|
||||
/*Build*/
|
||||
define('build','dashboard,profile,buildtool,firmwaretool,buildtool,products_software,application');
|
||||
define('build','dashboard,profile,application,buildtool,buildtool,firmwaretool,products_software');
|
||||
/*Commerce*/
|
||||
define('commerce','dashboard,profile,products,products_versions,products_software,products_attributes,products_attributes_items,products_attributes_manage,products_configurations,products_categories,products_media,product,product_manage,pricelists,pricelists_items,pricelists_manage,catalog,categories,category,discounts,discount,shipping,shipping_manage,admin,partners,partner,users,user,user_manage,translations,translations_details,translation_manage,media,media_manage,application,uploader,shopping_cart,checkout,placeorder,taxes,transactions,transactions_items,invoice,order,orders,identity');
|
||||
define('commerce','admin,dashboard,profile,application,catalog,categories,category,checkout,discount,discounts,identity,invoice,media,media_manage,order,orders,partner,partners,placeorder,pricelists,pricelists_items,pricelists_manage,shipping,shipping_manage,shopping_cart,taxes,transactions,transactions_items,translation_manage,translations,translations_details,uploader,product,product_manage,products,products_attributes,products_attributes_items,products_attributes_manage,products_categories,products_configurations,products_media,products_software,products_versions,user,user_manage,users');
|
||||
/*Distribution*/
|
||||
define('distribution','dashboard,profile,assets,equipments,equipment,equipment_manage,equipment_manage_edit,equipments_mass_update,histories,history,history_manage,firmwaretool,products,products_versions,products_software,product,product_manage,servicereports,servicereport,admin,partners,partner,users,user,user_manage,marketing,application');
|
||||
define('distribution','admin,dashboard,profile,application,assets,firmwaretool,histories,history,history_manage,marketing,partner,partners,servicereport,servicereports,equipment,equipment_manage,equipment_manage_edit,equipments,equipments_mass_update,product,product_manage,products,products_software,products_versions,user,user_manage,users');
|
||||
/*Firmware*/
|
||||
define('firmware','firmwaretool,products_software,application');
|
||||
define('firmware','application,firmwaretool,products_software');
|
||||
/*Garage*/
|
||||
define('garage','dashboard,profile,cartests,cartest,cartest_manage,products_versions,application');
|
||||
define('garage','dashboard,profile,application,cartest,cartest_manage,cartests,products_versions');
|
||||
/*Interface*/
|
||||
define('interface','contracts,contract,equipments,equipment_manage,firmwaretool,products_versions,products_software,users,application');
|
||||
define('interface','application,firmwaretool,contract,contracts,equipment_manage,equipments,products_software,products_versions,users');
|
||||
/*Service*/
|
||||
define('service','dashboard,profile,assets,equipments,equipment,equipment_manage,histories,history,history_manage,firmwaretool,products_software,servicereports,servicereport,admin,partners,partner,users,user,user_manage,marketing,application');
|
||||
define('service','admin,dashboard,profile,application,assets,firmwaretool,histories,history,history_manage,marketing,partner,partners,servicereport,servicereports,equipment,equipment_manage,equipments,products_software,user,user_manage,users');
|
||||
/*Other*/
|
||||
define('other','dashboard,profile,assets,equipments,equipment,equipment_manage,histories,history,history_manage,firmwaretool,products_software,servicereports,servicereport,admin,partners,partner,marketing,application');
|
||||
define('other','admin,dashboard,profile,application,assets,firmwaretool,histories,history,history_manage,marketing,partner,partners,servicereport,servicereports,equipment,equipment_manage,equipments,products_software');
|
||||
|
||||
?>
|
||||
@@ -4,117 +4,138 @@
|
||||
// All individual views and APIs - Profile ++++++++++++++
|
||||
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
$all_views = [
|
||||
"dashboard",
|
||||
"profile",
|
||||
"buildtool",
|
||||
"sales",
|
||||
"accounts",
|
||||
"account",
|
||||
"contracts",
|
||||
"contract",
|
||||
"contract_manage",
|
||||
"account_manage",
|
||||
"accounts",
|
||||
"admin",
|
||||
"api",
|
||||
"application",
|
||||
"appointment",
|
||||
"assets",
|
||||
"billing",
|
||||
"cartests",
|
||||
"buildtool",
|
||||
"buildtool",
|
||||
"cartest",
|
||||
"cartest_manage",
|
||||
"dealers",
|
||||
"dealers_media",
|
||||
"dealer",
|
||||
"dealer_manage",
|
||||
"assets",
|
||||
"equipments",
|
||||
"equipment",
|
||||
"equipment_healthindex",
|
||||
"equipment_data",
|
||||
"equipment_manage",
|
||||
"equipment_manage_edit",
|
||||
"equipments_mass_update",
|
||||
"histories",
|
||||
"history",
|
||||
"history_manage",
|
||||
"firmwaretool",
|
||||
"rmas",
|
||||
"rma",
|
||||
"rma_manage",
|
||||
"rma_history",
|
||||
"rma_history_manage",
|
||||
"buildtool",
|
||||
"products",
|
||||
"products_versions",
|
||||
"products_software",
|
||||
"products_software_versions",
|
||||
"products_software_assignments",
|
||||
"products_software_version",
|
||||
"products_software_version_manage",
|
||||
"products_software_version_access_rules_manage",
|
||||
"products_software_upgrade_paths_manage",
|
||||
"products_software_assignments",
|
||||
"products_attributes",
|
||||
"products_attributes_items",
|
||||
"products_attributes_manage",
|
||||
"products_configurations",
|
||||
"products_categories",
|
||||
"products_media",
|
||||
"product",
|
||||
"product_manage",
|
||||
"pricelists",
|
||||
"pricelists_items",
|
||||
"pricelists_manage",
|
||||
"cartests",
|
||||
"catalog",
|
||||
"categories",
|
||||
"category",
|
||||
"discounts",
|
||||
"discount",
|
||||
"shipping",
|
||||
"shipping_manage",
|
||||
"servicereports",
|
||||
"servicereport",
|
||||
"admin",
|
||||
"partners",
|
||||
"partner",
|
||||
"upgrades",
|
||||
"users",
|
||||
"user",
|
||||
"user_manage",
|
||||
"communications",
|
||||
"changelog",
|
||||
"checkout",
|
||||
"com_log",
|
||||
"communication",
|
||||
"communication_send",
|
||||
"communications",
|
||||
"config",
|
||||
"contract",
|
||||
"contract_manage",
|
||||
"contracts",
|
||||
"cronjob",
|
||||
"dashboard",
|
||||
"dealer",
|
||||
"dealer_manage",
|
||||
"dealers",
|
||||
"dealers_media",
|
||||
"debug",
|
||||
"dev",
|
||||
"discount",
|
||||
"discounts",
|
||||
"equipment",
|
||||
"equipment_data",
|
||||
"equipment_healthindex",
|
||||
"equipment_manage",
|
||||
"equipment_manage_edit",
|
||||
"equipments",
|
||||
"equipments_mass_update",
|
||||
"firmwaretool",
|
||||
"generate_download_token",
|
||||
"histories",
|
||||
"history",
|
||||
"history_manage",
|
||||
"identity",
|
||||
"identity_dealers",
|
||||
"invoice",
|
||||
"language",
|
||||
"logfile",
|
||||
"mailer",
|
||||
"maintenance",
|
||||
"marketing",
|
||||
"reporting",
|
||||
"media",
|
||||
"media_manage",
|
||||
"media_scanner",
|
||||
"media_upload",
|
||||
"order",
|
||||
"orders",
|
||||
"partner",
|
||||
"partners",
|
||||
"placeorder",
|
||||
"pricelists",
|
||||
"pricelists_items",
|
||||
"pricelists_manage",
|
||||
"product",
|
||||
"product_manage",
|
||||
"products",
|
||||
"products_attributes",
|
||||
"products_attributes_items",
|
||||
"products_attributes_manage",
|
||||
"products_categories",
|
||||
"products_configurations",
|
||||
"products_media",
|
||||
"products_software",
|
||||
"products_software_assignment",
|
||||
"products_software_assignments",
|
||||
"products_software_assignments",
|
||||
"products_software_licenses",
|
||||
"products_software_upgrade_paths",
|
||||
"products_software_upgrade_paths_manage",
|
||||
"products_software_version",
|
||||
"products_software_version_access_rules_manage",
|
||||
"products_software_version_manage",
|
||||
"products_software_versions",
|
||||
"products_versions",
|
||||
"profile",
|
||||
"profiles",
|
||||
"register",
|
||||
"render_service_report",
|
||||
"report_build",
|
||||
"report_contracts_billing",
|
||||
"report_healthindex",
|
||||
"report_usage",
|
||||
"config",
|
||||
"reporting",
|
||||
"reset",
|
||||
"rma",
|
||||
"rma_history",
|
||||
"rma_history_manage",
|
||||
"rma_manage",
|
||||
"rmas",
|
||||
"sales",
|
||||
"security",
|
||||
"servicereport",
|
||||
"servicereports",
|
||||
"settings",
|
||||
"logfile",
|
||||
"changelog",
|
||||
"language",
|
||||
"translations",
|
||||
"translations_details",
|
||||
"translation_manage",
|
||||
"media",
|
||||
"media_upload",
|
||||
"media_manage",
|
||||
"media_scanner",
|
||||
"mailer",
|
||||
"application",
|
||||
"maintenance",
|
||||
"uploader",
|
||||
"profiles",
|
||||
"vin",
|
||||
"shipping",
|
||||
"shipping_manage",
|
||||
"shopping_cart",
|
||||
"checkout",
|
||||
"placeorder",
|
||||
"software_available",
|
||||
"software_download",
|
||||
"software_update",
|
||||
"tax",
|
||||
"taxes",
|
||||
"test",
|
||||
"transactions",
|
||||
"transactions_items",
|
||||
"invoice",
|
||||
"order",
|
||||
"orders",
|
||||
"identity",
|
||||
"identity_dealers",
|
||||
"appointment"
|
||||
"translation_manage",
|
||||
"translations",
|
||||
"translations_details",
|
||||
"unscribe",
|
||||
"upgrades",
|
||||
"uploader",
|
||||
"user",
|
||||
"user_credentials",
|
||||
"user_manage",
|
||||
"users",
|
||||
"vin",
|
||||
];
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user