diff --git a/api/application/controllers/Common_Masters_Controller.php b/api/application/controllers/Common_Masters_Controller.php index bdfa00bf..74581af6 100644 --- a/api/application/controllers/Common_Masters_Controller.php +++ b/api/application/controllers/Common_Masters_Controller.php @@ -1275,7 +1275,7 @@ class Common_Masters_Controller extends REST_Controller { $userRoleId = $userDetails["data"][0]['user_role']; $name = $userDetails["data"][0]['user_first_name'].$userDetails["data"][0]['user_last_name']; $officerName = strtoupper(preg_replace('/\s+/', '', $name)); - $temp = ($userRoleId == $creditManagerRoleId) ? 0 : 1; + $temp = ($userRoleId == $creditManagerRoleId) ? 1 : 0; }else{ $officerName = $user_type == 'PDOFFICER' ? 'PDOFFICER' : 'CUSTOMER'; $temp = 1;