]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #1786 from wallabag/v2-restrict-user-infos
authorNicolas Lœuillet <nicolas@loeuillet.org>
Mon, 14 Mar 2016 05:15:46 +0000 (06:15 +0100)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Mon, 14 Mar 2016 05:15:46 +0000 (06:15 +0100)
API shows just what needed for user

src/Wallabag/CoreBundle/Controller/DeveloperController.php

index 71065534e198dd863ae8614cde1a6f366e39e91c..f519bdbcc21ac87ce4bc9b3c3750714532a7cf99 100644 (file)
@@ -43,7 +43,7 @@ class DeveloperController extends Controller
         $clientForm->handleRequest($request);
 
         if ($clientForm->isValid()) {
-            $client->setAllowedGrantTypes(array('token', 'authorization_code', 'password'));
+            $client->setAllowedGrantTypes(array('token', 'authorization_code', 'password','refresh_token'));
             $em->persist($client);
             $em->flush();