[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:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user