aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-10-04 13:35:13 +0200
committerGitHub <noreply@github.com>2016-10-04 13:35:13 +0200
commitf2ab290f0fc8a2909bb490e0ed2d91a677a95cc4 (patch)
treede209b59a4b3225b1eb54b7b66c975069cbd1d2d /src
parentf0b2d57154832fdd6255a1bef0df34a7144806c5 (diff)
parent9a6ac0b47a75f7cc8c8541b3e3fd3f40a3712f4f (diff)
downloadwallabag-f2ab290f0fc8a2909bb490e0ed2d91a677a95cc4.tar.gz
wallabag-f2ab290f0fc8a2909bb490e0ed2d91a677a95cc4.tar.zst
wallabag-f2ab290f0fc8a2909bb490e0ed2d91a677a95cc4.zip
Merge pull request #2359 from wallabag/user-config
Create config even if user is disabled
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/UserBundle/EventListener/CreateConfigListener.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/Wallabag/UserBundle/EventListener/CreateConfigListener.php b/src/Wallabag/UserBundle/EventListener/CreateConfigListener.php
index 15f4ac3d..8e2f04e9 100644
--- a/src/Wallabag/UserBundle/EventListener/CreateConfigListener.php
+++ b/src/Wallabag/UserBundle/EventListener/CreateConfigListener.php
@@ -45,10 +45,6 @@ class CreateConfigListener implements EventSubscriberInterface
45 45
46 public function createConfig(UserEvent $event, $eventName = null, EventDispatcherInterface $eventDispatcher = null) 46 public function createConfig(UserEvent $event, $eventName = null, EventDispatcherInterface $eventDispatcher = null)
47 { 47 {
48 if (!$event->getUser()->isEnabled()) {
49 return;
50 }
51
52 $config = new Config($event->getUser()); 48 $config = new Config($event->getUser());
53 $config->setTheme($this->theme); 49 $config->setTheme($this->theme);
54 $config->setItemsPerPage($this->itemsOnPage); 50 $config->setItemsPerPage($this->itemsOnPage);