Skip to content

Commit

Permalink
Fixed Examiner API showing revoked exams #443
Browse files Browse the repository at this point in the history
  • Loading branch information
blt950 committed Sep 3, 2022
1 parent 13b22e6 commit e4fe0dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/API/ExaminerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e4fe0dd

Please sign in to comment.