summaryrefslogtreecommitdiff
path: root/addons/auth_totp/security/security.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/auth_totp/security/security.xml')
-rw-r--r--addons/auth_totp/security/security.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/addons/auth_totp/security/security.xml b/addons/auth_totp/security/security.xml
new file mode 100644
index 00000000..4d44c23a
--- /dev/null
+++ b/addons/auth_totp/security/security.xml
@@ -0,0 +1,16 @@
+<odoo>
+ <record model="ir.model.access" id="access_auth_totp_wizard">
+ <field name="name">auth_totp wizard access rules</field>
+ <field name="model_id" ref="model_auth_totp_wizard"/>
+ <field name="group_id" ref="base.group_user"/>
+ <field name="perm_read">1</field>
+ <field name="perm_write">1</field>
+ <field name="perm_create">1</field>
+ <field name="perm_unlink">1</field>
+ </record>
+ <record model="ir.rule" id="rule_auth_totp_wizard">
+ <field name="name">Users can only access their own wizard</field>
+ <field name="model_id" ref="model_auth_totp_wizard"/>
+ <field name="domain_force">[('user_id', '=', user.id)]</field>
+ </record>
+</odoo>