diff --git a/app/Http/Controllers/API/ExaminerController.php b/app/Http/Controllers/API/ExaminerController.php index 8bf6e440c..20ca728cc 100644 --- a/app/Http/Controllers/API/ExaminerController.php +++ b/app/Http/Controllers/API/ExaminerController.php @@ -14,7 +14,7 @@ public function index() { foreach(Area::all() as $area){ $thisArea = collect(); - foreach($area->endorsements->where('type', 'EXAMINER') as $endorsement){ + foreach($area->endorsements->where('type', 'EXAMINER')->where('revoked', false) as $endorsement){ $thisArea->push([ 'user_id' => $endorsement->user->id, 'first_name' => $endorsement->user->first_name,