[FIX] change access rights for customize_template_*

bzr revid: xmo@openerp.com-20131025095952-9ditm4q3fwr9auto
This commit is contained in:
Xavier Morel
2013-10-25 11:59:52 +02:00
parent c8dd901b04
commit 4c88701f3d
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -130,7 +130,7 @@ class Website(openerp.addons.web.controllers.main.Home):
html = request.website.render('website.404', values)
return html
@website.route('/website/customize_template_toggle', type='json', auth='admin') # FIXME: auth
@website.route('/website/customize_template_toggle', type='json', auth='user')
def customize_template_set(self, view_id):
view_obj = request.registry.get("ir.ui.view")
view = view_obj.browse(request.cr, request.uid, int(view_id),
@@ -144,7 +144,7 @@ class Website(openerp.addons.web.controllers.main.Home):
}, context=request.context)
return True
@website.route('/website/customize_template_get', type='json', auth='admin') # FIXME: auth
@website.route('/website/customize_template_get', type='json', auth='user')
def customize_template_get(self, xml_id, optional=True):
imd = request.registry['ir.model.data']
view_model, view_theme_id = imd.get_object_reference(
@@ -517,7 +517,6 @@
fetch_editables: function (root) {
return $(root).find('[data-oe-model]')
// FIXME: propagation should make "meta" blocks non-editable in the first place...
.not('link, script')
.not('.oe_snippet_editor')
.filter(function () {