fix load data dealer base on user with pivot or not

This commit is contained in:
2025-07-10 12:24:11 +07:00
parent e59841fd23
commit b632996052
5 changed files with 223 additions and 19 deletions

View File

@@ -450,11 +450,7 @@ class TechnicianReportService
{
// Define admin role names that should have access to all dealers
$adminRoleNames = [
'admin',
'super admin',
'administrator',
'sa',
'superadmin'
'admin'
];
// Check if role name contains admin keywords (but not "area")