Skip to content
Snippets Groups Projects
Commit 1f4f0c07 authored by Denis Ledoux's avatar Denis Ledoux
Browse files

[FIX] email_template: security, email_template no rights for externals

parent dd86d41e
Branches
Tags
No related merge requests found
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_email_template,email.template,model_email_template,,1,1,1,0
access_email_template,email.template,model_email_template,base.group_user,1,1,1,0
access_email_template_system,email.template system,model_email_template,base.group_system,1,1,1,1
......@@ -58,7 +58,7 @@ class mail_compose_message(osv.TransientModel):
_columns = {
# incredible hack of the day: size=-1 means we want an int db column instead of an str one
'template_id': fields.selection(_get_templates, 'Template', size=-1),
'template_id': fields.selection(_get_templates, 'Template', size=-1, groups="base.group_user"),
}
def send_mail(self, cr, uid, ids, context=None):
......
......@@ -6,6 +6,7 @@
<field name="name">mail.compose.message.form</field>
<field name="model">mail.compose.message</field>
<field name="inherit_id" ref="mail.email_compose_message_wizard_form"/>
<field name="groups_id" eval="[(4,ref('base.group_user'))]"/>
<field name="arch" type="xml">
<xpath expr="//footer" position="inside">
<group class="oe_right" col="1">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment