Endpoints/User

* do not display user page for internal system user
This commit is contained in:
Sarjuuk
2025-10-08 20:01:24 +02:00
parent 215ad39cc6
commit 1dcdf9623b

View File

@@ -42,6 +42,10 @@ class UserBaseResponse extends TemplateResponse
$this->user = $user; $this->user = $user;
else else
$this->generateNotFound(Lang::user('notFound', [$pageParam])); $this->generateNotFound(Lang::user('notFound', [$pageParam]));
// do not display system account
if (!$this->user['id'])
$this->generateNotFound(Lang::user('notFound', [$pageParam]));
} }
protected function generate() : void protected function generate() : void