summaryrefslogtreecommitdiff
path: root/addons/web_editor/views
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2020-02-28 13:52:45 +0100
committerMartin Trigaux <mat@odoo.com>2020-05-14 13:59:10 +0200
commit64d0dab0a69fc62db85f67dfd1ea8638976610f6 (patch)
treedf67a3653baca46c89462348b0f1633252d02a2e /addons/web_editor/views
parent8eb575a1cf97e330a3d5545be81ab5eb0976de6a (diff)
[FIX] *: add group_ids where it is needed
Following the previous commit adding access via groups_id These views are rendered publicly by specific user
Diffstat (limited to 'addons/web_editor/views')
-rw-r--r--addons/web_editor/views/editor.xml4
-rw-r--r--addons/web_editor/views/snippets.xml2
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/web_editor/views/editor.xml b/addons/web_editor/views/editor.xml
index a9337494333..584725eb515 100644
--- a/addons/web_editor/views/editor.xml
+++ b/addons/web_editor/views/editor.xml
@@ -7,7 +7,7 @@
<t t-call-assets="web_editor.assets_wysiwyg"/>
</template>
-<template id="compiled_assets_wysiwyg" name="Wysiwyg Editor">
+<template id="compiled_assets_wysiwyg" name="Wysiwyg Editor" groups="base.group_user,base.group_portal">
<t t-call-assets="web_editor.assets_wysiwyg"/>
</template>
@@ -209,7 +209,7 @@
If a color is no longer used you need to add the d-none class to it and not remove it from this file !!
Else you will no longer be able to use them.
-->
-<template id="web_editor.colorpicker" name="Color-Picker">
+<template id="web_editor.colorpicker" name="Color-Picker" groups="base.group_user">
<colorpicker>
<div class="o_colorpicker_section" data-name="theme">
<button data-color="alpha"></button>
diff --git a/addons/web_editor/views/snippets.xml b/addons/web_editor/views/snippets.xml
index c9b8391ae53..91169152a6c 100644
--- a/addons/web_editor/views/snippets.xml
+++ b/addons/web_editor/views/snippets.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
-<template id="snippets">
+<template id="snippets" groups="base.group_user">
<div id="snippets_menu">
<button type="button" class="o_we_add_snippet_btn active" accesskey="1">
Blocks