Fix 500 when oauth is null (#1798)

This commit is contained in:
MartinOscar 2025-10-11 22:06:51 +02:00 committed by GitHub
parent 4652680a7b
commit 266e3779d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -286,7 +286,7 @@ class UserResource extends Resource
return;
}
$actions = [];
foreach ($user->oauth as $schema => $_) {
foreach ($user->oauth ?? [] as $schema => $_) {
$schema = $oauthService->get($schema);
if (!$schema) {
return;