mirror of
https://github.com/pelican-dev/panel.git
synced 2025-10-29 22:36:51 +01:00
Fix 500 when oauth is null (#1798)
This commit is contained in:
parent
4652680a7b
commit
266e3779d5
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user