|
|
|
@ -178,7 +178,7 @@ Class SiteController extends Controller {
@@ -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); |
|
|
|
|
} |
|
|
|
|