Browse Source

improve user check

master
filesite 7 months ago
parent
commit
83ae42febf
  1. 2
      themes/tajian/controller/SiteController.php

2
themes/tajian/controller/SiteController.php

@ -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);
}

Loading…
Cancel
Save