From 83ae42febf96d598c921aad5abc18fd50626acce Mon Sep 17 00:00:00 2001 From: filesite Date: Sun, 5 May 2024 14:06:48 +0000 Subject: [PATCH] improve user check --- themes/tajian/controller/SiteController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/tajian/controller/SiteController.php b/themes/tajian/controller/SiteController.php index 5ea7738..2f29991 100644 --- a/themes/tajian/controller/SiteController.php +++ b/themes/tajian/controller/SiteController.php @@ -178,7 +178,7 @@ Class SiteController extends Controller { $loginedUser = Common::getUserFromSession(); if (empty($loginedUser['username'])) { return $this->redirect('/site/login/'); - }else if (!empty(FSC::$app['config']['multipleUserUriParse']) && empty(FSC::$app['user_id']) && !empty($loginedUser['username'])) { + }else if (!empty(FSC::$app['config']['multipleUserUriParse']) && FSC::$app['user_id'] != $loginedUser['username']) { $shareUrl = "/{$loginedUser['username']}/site/new/"; return $this->redirect($shareUrl); }