From 5d39243068a3c1132f6e3020c6c9da1840f85fcf Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 5 Oct 2016 15:28:36 +0200 Subject: [PATCH] Fix exists API call Boo --- src/Wallabag/ApiBundle/Controller/WallabagRestController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.41.0