[FIX] changed back default authetication level of old routes to "user" to remove inconsistency

bzr revid: nicolas.vanhoren@openerp.com-20131017084818-ijen4a2ywyg9lrxe
This commit is contained in:
niv-openerp
2013-10-17 10:48:18 +02:00
parent d72ccec81a
commit 0ded676e72
+2 -2
View File
@@ -395,7 +395,7 @@ def jsonrequest(f):
base = f.__name__.lstrip('/')
if f.__name__ == "index":
base = ""
return route([base, base + "/<path:_ignored_path>"], type="json", auth="none")(f)
return route([base, base + "/<path:_ignored_path>"], type="json", auth="user")(f)
class HttpRequest(WebRequest):
""" Regular GET/POST request
@@ -473,7 +473,7 @@ def httprequest(f):
base = f.__name__.lstrip('/')
if f.__name__ == "index":
base = ""
return route([base, base + "/<path:_ignored_path>"], type="http", auth="none")(f)
return route([base, base + "/<path:_ignored_path>"], type="http", auth="user")(f)
#----------------------------------------------------------
# Local storage of requests