X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FApiBundle%2FController%2FWallabagRestController.php;h=b2c73932e07ccb68d1eb6944ca854daf90be9f74;hb=5d39243068a3c1132f6e3020c6c9da1840f85fcf;hp=791bf80b2310b89e1416289811a07ca879294ccf;hpb=2fb9caeb2de119e83cab993d4c1e7f4b81227362;p=github%2Fwallabag%2Fwallabag.git 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()