]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix exists API call
authorThomas Citharel <tcit@tcit.fr>
Wed, 5 Oct 2016 13:28:36 +0000 (15:28 +0200)
committerGitHub <noreply@github.com>
Wed, 5 Oct 2016 13:28:36 +0000 (15:28 +0200)
Boo

src/Wallabag/ApiBundle/Controller/WallabagRestController.php

index 791bf80b2310b89e1416289811a07ca879294ccf..b2c73932e07ccb68d1eb6944ca854daf90be9f74 100644 (file)
@@ -40,7 +40,7 @@ class WallabagRestController extends FOSRestController
         $url = $request->query->get('url', '');
 
         if (empty($url)) {
-            throw $this->createAccessDeniedException('URL is empty?, logged user id: '.$user->getId());
+            throw $this->createAccessDeniedException('URL is empty?, logged user id: '.$this->getUser->getId());
         }
 
         $res = $this->getDoctrine()