|
|
@ -178,7 +178,7 @@ Class SiteController extends Controller { |
|
|
|
$loginedUser = Common::getUserFromSession(); |
|
|
|
$loginedUser = Common::getUserFromSession(); |
|
|
|
if (empty($loginedUser['username'])) { |
|
|
|
if (empty($loginedUser['username'])) { |
|
|
|
return $this->redirect('/site/login/'); |
|
|
|
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/"; |
|
|
|
$shareUrl = "/{$loginedUser['username']}/site/new/"; |
|
|
|
return $this->redirect($shareUrl); |
|
|
|
return $this->redirect($shareUrl); |
|
|
|
} |
|
|
|
} |
|
|
|