File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments