diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-08-01 11:10:57 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-08-01 11:10:57 +0200 |
commit | d6e5f04d3987e498c5cb859eed6bff33d67949df (patch) | |
tree | aec901679761a9bb4dfdbecc6625e4f4583d004e /application/front | |
parent | f7f08ceec1b218e1525153e8bd3d0199f2fb1c9d (diff) | |
download | Shaarli-d6e5f04d3987e498c5cb859eed6bff33d67949df.tar.gz Shaarli-d6e5f04d3987e498c5cb859eed6bff33d67949df.tar.zst Shaarli-d6e5f04d3987e498c5cb859eed6bff33d67949df.zip |
Remove anonymous permission and initialize bookmarks on login
Diffstat (limited to 'application/front')
-rw-r--r-- | application/front/controller/visitor/InstallController.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/application/front/controller/visitor/InstallController.php b/application/front/controller/visitor/InstallController.php index 5e3152c7..7cb32777 100644 --- a/application/front/controller/visitor/InstallController.php +++ b/application/front/controller/visitor/InstallController.php | |||
@@ -5,7 +5,6 @@ declare(strict_types=1); | |||
5 | namespace Shaarli\Front\Controller\Visitor; | 5 | namespace Shaarli\Front\Controller\Visitor; |
6 | 6 | ||
7 | use Shaarli\ApplicationUtils; | 7 | use Shaarli\ApplicationUtils; |
8 | use Shaarli\Bookmark\BookmarkFilter; | ||
9 | use Shaarli\Container\ShaarliContainer; | 8 | use Shaarli\Container\ShaarliContainer; |
10 | use Shaarli\Front\Exception\AlreadyInstalledException; | 9 | use Shaarli\Front\Exception\AlreadyInstalledException; |
11 | use Shaarli\Front\Exception\ResourcePermissionException; | 10 | use Shaarli\Front\Exception\ResourcePermissionException; |
@@ -140,10 +139,6 @@ class InstallController extends ShaarliVisitorController | |||
140 | return $response->write($this->render('error')); | 139 | return $response->write($this->render('error')); |
141 | } | 140 | } |
142 | 141 | ||
143 | if ($this->container->bookmarkService->count(BookmarkFilter::$ALL) === 0) { | ||
144 | $this->container->bookmarkService->initialize(); | ||
145 | } | ||
146 | |||
147 | $this->container->sessionManager->setSessionParameter( | 142 | $this->container->sessionManager->setSessionParameter( |
148 | SessionManager::KEY_SUCCESS_MESSAGES, | 143 | SessionManager::KEY_SUCCESS_MESSAGES, |
149 | [t('Shaarli is now configured. Please login and start shaaring your bookmarks!')] | 144 | [t('Shaarli is now configured. Please login and start shaaring your bookmarks!')] |