agent login : GWM

This commit is contained in:
Gowtham M 2025-10-29 14:58:27 +05:30
parent 3837fd0b9b
commit 9a7140f5ad

View File

@ -131,6 +131,9 @@ class AuthController extends ResourceController
? null ? null
: date('d, M-Y h:iA', strtotime($lastLoginBeforeUpdate)); : date('d, M-Y h:iA', strtotime($lastLoginBeforeUpdate));
//get role
$user['role'] = $this->userModel->getRole($user['role_id']);
if($user['role_id'] != 5) if($user['role_id'] != 5)
{ {
@ -145,9 +148,6 @@ class AuthController extends ResourceController
$user['service'][$key]['order'] = $serviceData['order']; $user['service'][$key]['order'] = $serviceData['order'];
} }
//get role
$user['role'] = $this->userModel->getRole($user['role_id']);
//find user has the all access //find user has the all access
$user['plan_action'] = getUserPlanCreationRestrictionStatus($user); $user['plan_action'] = getUserPlanCreationRestrictionStatus($user);