Skip to content

Commit e34a2de

Browse files
committed
Post Merger: staff updates
1 parent 286e054 commit e34a2de

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/Authentication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private function requestNewToken(): string
7777
'grant_type' => 'client_credentials',
7878
'client_id' => $this->clientId,
7979
'client_secret' => $this->clientSecret,
80-
'scope' => 'api',
80+
// 'scope' => 'api', // POST MERGER SEEMINGLY TAKE THIS OUT
8181
],
8282
]);
8383

src/Wrappers/Employee.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ protected function handle(): void
2525
}
2626
}
2727
}
28+
/**
29+
* Now we use just one ISAMS we need to rely on divisions to work out what school a staff member is in.
30+
* NB: Isams makes 'divisions' null if empty, but our code in Pastoral Module expects an empty collection.
31+
*/
32+
if (isset($this->divisions)) {
33+
$this->divisions = collect($this->divisions);
34+
} else {
35+
$this->divisions = collect();
36+
}
2837

2938
if (isset($this->customFields)) {
3039
$this->customFields = collect($this->customFields);

0 commit comments

Comments
 (0)