mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Endpoints/User
* do not display user page for internal system user
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user