From 6a93f88c27c63919c8c8bbe55484df9fed27fd00 Mon Sep 17 00:00:00 2001 From: adamdyer Date: Tue, 3 Jun 2014 10:37:16 +0100 Subject: [PATCH] [OE-3035] use IsDoctor from staff database --- components/UserObserver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/UserObserver.php b/components/UserObserver.php index 4beb034..3377712 100644 --- a/components/UserObserver.php +++ b/components/UserObserver.php @@ -44,7 +44,7 @@ public function updateUser($params) $user->qualifications = $remote_user->EPR_MedicalDegrees; $user->role = $remote_user->MUUID_Staff_JobTitle; $user->password = 'faed6633f5a86241f3e0c2bb2bb768fd'; - $user->is_doctor = ($user->qualifications != '' && $user->qualifications != '.') ? 1 : 0; + $user->is_doctor = $remote_user->MUUID_Staff_IsDoctor; $user->is_clinical = $remote_user->MUUID_Staff_IsClinical; $user->is_consultant = $remote_user->MUUID_Staff_IsConsultant; $user->is_surgeon = $remote_user->MUUID_Staff_IsSurgeon;