Skip to content

Commit

Permalink
[OE-3035] use IsDoctor from staff database
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdyer committed Jun 3, 2014
1 parent 4ffe6bb commit 6a93f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/UserObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6a93f88

Please sign in to comment.