From: Thomas Citharel Date: Wed, 5 Oct 2016 13:28:36 +0000 (+0200) Subject: Fix exists API call X-Git-Tag: 2.1.2~45^2~1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=5d39243068a3c1132f6e3020c6c9da1840f85fcf;p=github%2Fwallabag%2Fwallabag.git Fix exists API call Boo --- diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index 791bf80b..b2c73932 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php @@ -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()