diff options
3 files changed, 0 insertions, 8 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php index 81bfbe12..4215e447 100644 --- a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php | |||
@@ -237,8 +237,6 @@ class WallabagRestController extends Controller | |||
237 | */ | 237 | */ |
238 | public function getEntriesTagsAction(Entry $entry) | 238 | public function getEntriesTagsAction(Entry $entry) |
239 | { | 239 | { |
240 | var_dump($entry->getUser()->getId()); | ||
241 | var_dump($this->getUser()->getId()); | ||
242 | if ($entry->getUser()->getId() != $this->getUser()->getId()) { | 240 | if ($entry->getUser()->getId() != $this->getUser()->getId()) { |
243 | throw $this->createAccessDeniedException(); | 241 | throw $this->createAccessDeniedException(); |
244 | } | 242 | } |
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index a8085ac9..e102edc7 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -132,9 +132,5 @@ class EntryRepository extends EntityRepository | |||
132 | ->where('t.user=:userId')->setParameter('userId', 1); | 132 | ->where('t.user=:userId')->setParameter('userId', 1); |
133 | 133 | ||
134 | return $qb->getQuery()->getOneOrNullResult(); | 134 | return $qb->getQuery()->getOneOrNullResult(); |
135 | |||
136 | return $qb | ||
137 | ->getQuery() | ||
138 | ->getOneOrNullResult(); | ||
139 | } | 135 | } |
140 | } | 136 | } |
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php index 04448537..b0f4a842 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/WallabagRestControllerTest.php | |||
@@ -163,8 +163,6 @@ class WallabagRestControllerTest extends WallabagTestCase | |||
163 | ->getRepository('WallabagCoreBundle:Entry') | 163 | ->getRepository('WallabagCoreBundle:Entry') |
164 | ->findOneWithTags(1); | 164 | ->findOneWithTags(1); |
165 | 165 | ||
166 | var_dump($entry->getTitle()); | ||
167 | |||
168 | if (!$entry) { | 166 | if (!$entry) { |
169 | $this->markTestSkipped('No content found in db.'); | 167 | $this->markTestSkipped('No content found in db.'); |
170 | } | 168 | } |