Skip to content

Commit

Permalink
TA#66759 [IMP] admin_light_auditlog: Manage access rights
Browse files Browse the repository at this point in the history
  • Loading branch information
majouda committed Sep 12, 2024
1 parent 5c25e19 commit 1cc867a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
10 changes: 9 additions & 1 deletion admin_light_auditlog/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,18 @@ This module adds Auditlog to the Admin Light application.

A new group `Safe Administration / Audit Logs` is added.

.. image:: static/description/group_auditlogs.png

This group has access to:

* View audit logs
* Edit audit rules
* View audit detailed Logs
* Create and edit audit rules

A new menu "Audit" with submenus are added to the application "Administration".

.. image:: static/description/administration_audit_menu.png


Contributors
------------
Expand Down
8 changes: 3 additions & 5 deletions admin_light_auditlog/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_auditlog_rule_manager,Admin Light: auditlog.rule,auditlog.model_auditlog_rule,group_auditlogs,1,1,1,1
access_auditlog_log_manager,Admin Light: auditlog.log,auditlog.model_auditlog_log,group_auditlogs,1,1,1,1
access_auditlog_log_line_manager,Admin Light: auditlog.log.line,auditlog.model_auditlog_log_line,group_auditlogs,1,1,1,1
access_auditlog_log_line_view_manager,Admin Light: auditlog.log.line.view,auditlog.model_auditlog_log_line_view,group_auditlogs,1,1,1,1
access_auditlog_http_request_manager,Admin Light: auditlog.http.request,auditlog.model_auditlog_http_request,group_auditlogs,1,1,1,1
access_ir_model,Admin Light: ir.model,base.model_ir_model,group_auditlogs,1,0,0,0
access_auditlog_rule_manager,Admin Light: auditlog.rule,auditlog.model_auditlog_rule,group_auditlogs,1,1,1,0
access_auditlog_log_line_view_manager,Admin Light: auditlog.log.line.view,auditlog.model_auditlog_log_line_view,group_auditlogs,1,0,0,0
1 change: 1 addition & 0 deletions admin_light_auditlog/security/res_groups.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<field name="category_id" ref="admin_light_base.module_category_admin" />
<field name="implied_ids" eval="[
(4, ref('admin_light_base.group_admin')),
(4, ref('auditlog.group_auditlog_user'))
]" />
</record>

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1cc867a

Please sign in to comment.