mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 03:42:19 -06:00
[knowledge][11.0.3.0.0] - add security for access to ir.attachment.
Otherwise the module grants too wide permissions for all users.
This commit is contained in:
committed by
mle
parent
5d1fdc37a6
commit
f32b18f62f
@@ -37,9 +37,9 @@
|
||||
<menuitem
|
||||
id="menu_document_section"
|
||||
name="Documents"
|
||||
groups="knowledge.group_document_user"
|
||||
groups="knowledge.group_ir_attachment_user"
|
||||
parent="menu_document_root"
|
||||
sequence="10"/>
|
||||
sequence="150"/>
|
||||
|
||||
<menuitem
|
||||
id="menu_document"
|
||||
|
||||
@@ -21,6 +21,14 @@
|
||||
<label for="module_document"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-12 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="group_ir_attachment_user"/>
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="group_ir_attachment_user"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-12 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="module_document_page"/>
|
||||
@@ -75,7 +83,7 @@
|
||||
name="Configuration"
|
||||
parent="menu_document_root"
|
||||
groups="base.group_system"
|
||||
sequence="50"/>
|
||||
sequence="200"/>
|
||||
<menuitem id="menu_knowledge_configuration"
|
||||
name="Settings"
|
||||
parent="menu_document_configuration"
|
||||
|
||||
Reference in New Issue
Block a user