[FIX] js and css bundle controllers set as auth='public'

bzr revid: fme@openerp.com-20140422143401-1jtxvd58mcw4kelw
This commit is contained in:
Fabien Meghazi 2014-04-22 16:34:01 +02:00
parent 8f00758d51
commit 169ecc2b01
1 changed files with 2 additions and 2 deletions

View File

@ -587,7 +587,7 @@ class Home(http.Controller):
def login(self, db, login, key, redirect="/web", **kw):
return login_and_redirect(db, login, key, redirect_url=redirect)
@http.route('/web/js/<xmlid>', type='http', auth="user")
@http.route('/web/js/<xmlid>', type='http', auth="public")
def js_bundle(self, xmlid, **kw):
# manifest backward compatible mode, to be removed
values = {'manifest_list': manifest_list}
@ -601,7 +601,7 @@ class Home(http.Controller):
return make_conditional(
response, bundle.last_modified, bundle.checksum, max_age=60*5)
@http.route('/web/css/<xmlid>', type='http', auth='user')
@http.route('/web/css/<xmlid>', type='http', auth='public')
def css_bundle(self, xmlid, **kw):
values = {'manifest_list': manifest_list} # manifest backward compatible mode, to be removed
assets_html = request.render(xmlid, lazy=False, qcontext=values)