From 2b3ad30f8a18b58abb5342bb4c63757f10ab11a6 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 29 Jan 2014 10:10:50 +0100 Subject: [PATCH] [FIX] website: change auth=admin into auth=public. Fix website_project link bzr revid: chm@openerp.com-20140129091050-w2d7dbigflwod1uj --- addons/website/controllers/main.py | 6 ++-- addons/website/views/snippets.xml | 32 +++++++++---------- addons/website_google_map/controllers/main.py | 8 ++--- .../controllers/main.py | 9 +++--- .../website_project/views/website_project.xml | 2 +- 5 files changed, 29 insertions(+), 28 deletions(-) diff --git a/addons/website/controllers/main.py b/addons/website/controllers/main.py index dcdfdb5114e..9befae01931 100644 --- a/addons/website/controllers/main.py +++ b/addons/website/controllers/main.py @@ -55,7 +55,7 @@ class Website(openerp.addons.web.controllers.main.Home): return werkzeug.wrappers.Response(url, mimetype='text/plain') return werkzeug.utils.redirect(url) - @http.route('/website/theme_change', type='http', auth="admin", website=True) + @http.route('/website/theme_change', type='http', auth="public", website=True) def theme_change(self, theme_id=False, **kwargs): imd = request.registry['ir.model.data'] view = request.registry['ir.ui.view'] @@ -166,7 +166,7 @@ class Website(openerp.addons.web.controllers.main.Home): }) return result - @http.route('/website/get_view_translations', type='json', auth='admin', website=True) + @http.route('/website/get_view_translations', type='json', auth='public', website=True) def get_view_translations(self, xml_id, lang=None): lang = lang or request.context.get('lang') views = self.customize_template_get(xml_id, optional=False) @@ -175,7 +175,7 @@ class Website(openerp.addons.web.controllers.main.Home): irt = request.registry.get('ir.translation') return irt.search_read(request.cr, request.uid, domain, ['id', 'res_id', 'value'], context=request.context) - @http.route('/website/set_translations', type='json', auth='admin', website=True) + @http.route('/website/set_translations', type='json', auth='public', website=True) def set_translations(self, data, lang): irt = request.registry.get('ir.translation') for view_id, trans in data.items(): diff --git a/addons/website/views/snippets.xml b/addons/website/views/snippets.xml index 75c19d0d824..2012340dea1 100644 --- a/addons/website/views/snippets.xml +++ b/addons/website/views/snippets.xml @@ -372,22 +372,6 @@ -
-
- - Add Column -
-
- -

Feature

-

- Delete the above image or replace it with a picture - that illustrates your message. Click on the picture to - change it's rounded corner style. -

-
-
-
@@ -878,6 +862,22 @@