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
Khôi (Kiên Kim)
parent
6fac6414ca
commit
8e43688530
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user