Skip to content

Commit c5835ef

Browse files
committed
Hide the other "should be hidden" user model fields without an API key
1 parent b957ed0 commit c5835ef

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/Http/Controllers/API/v2/UserController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ public function getIndex(Request $request, $cid)
9090
//API Key Required
9191
$data['flag_broadcastOptedIn'] = null;
9292
$data['email'] = null;
93-
$data['visiting'] = null;
93+
$data['visits'] = null;
94+
$data['visiting_facilities'] = null;
95+
$data['academy_competencies'] = null;
9496
$data['roles'] = null;
9597
$data['promotions'] = null;
9698
}

0 commit comments

Comments
 (0)