summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2013-10-17 10:48:18 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2013-10-17 10:48:18 +0200
commit0ded676e72ec5421a865b155cb0d78dfa0318dc9 (patch)
tree1e77cbabf2de4c984555f93714af04203528b226
parentd72ccec81a3d98af44e7745fc376fd37580600c8 (diff)
[FIX] changed back default authetication level of old routes to "user" to remove inconsistency
bzr revid: nicolas.vanhoren@openerp.com-20131017084818-ijen4a2ywyg9lrxe
-rw-r--r--addons/web/http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/http.py b/addons/web/http.py
index 4f27fb51a36..7e12a71e44a 100644
--- a/addons/web/http.py
+++ b/addons/web/http.py
@@ -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