some fix
This commit is contained in:
@ -144,4 +144,13 @@ class UserController extends AdminController
|
||||
$this->redirect("/admin/user/");
|
||||
}
|
||||
|
||||
public function actionProfile(): void
|
||||
{
|
||||
$user = UserService::getAuthUser();
|
||||
if (!$user){
|
||||
throw new Exception(message: "The user not found");
|
||||
}
|
||||
$this->cgView->render("view.php", ['user' => $user]);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user