[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:
Jordi Ballester Alomar
2019-02-28 11:06:23 +01:00
committed by Khôi (Kiên Kim)
parent 6fac6414ca
commit 8e43688530
9 changed files with 51 additions and 9 deletions

View File

@@ -9,11 +9,17 @@ class KnowledgeConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
module_document = fields.Boolean(
'Manage documents',
'Attachments List and Document Indexation',
help='Document indexation, full text search of attachements.\n'
'- This installs the module document.'
)
group_ir_attachment_user = fields.Boolean(
string='Central access to Documents',
help="When you set this field all users will be able to manage "
"attachments centrally, from the Knowledge/Documents menu.",
implied_group='knowledge.group_ir_attachment_user')
module_document_page = fields.Boolean(
'Manage document pages (Wiki)',
help='Provide document page and category as a wiki.\n'