some fix
This commit is contained in:
1 parent
28c8e24847
commit
1a54003030
21 files changed
+118
-77
No files matched your search
@@ -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