summaryrefslogtreecommitdiff
path: root/addons/auth_totp/security
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/auth_totp/security
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/auth_totp/security')
-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>