From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Tue, 13 Dec 2016 08:51:20 +0000 (+0100)
Subject: make GetLeases reachable with anon auth
X-Git-Tag: plcapi-5.3-11~4
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=b5d5d175245b7a10aaf46dbe59ca17030aab1101;p=plcapi.git

make GetLeases reachable with anon auth
---

diff --git a/PLC/Methods/GetLeases.py b/PLC/Methods/GetLeases.py
index 3f511546..23850123 100644
--- a/PLC/Methods/GetLeases.py
+++ b/PLC/Methods/GetLeases.py
@@ -27,7 +27,7 @@ class GetLeases(Method):
 
     """
 
-    roles = ['admin', 'pi', 'user', 'node']
+    roles = ['admin', 'pi', 'user', 'node', 'anonymous']
 
     accepts = [
         Auth(),