diff options
| author | Thibault Delavallée <tde@openerp.com> | 2012-10-15 17:11:27 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2012-10-15 17:11:27 +0200 |
| commit | 4525b411e91b7fed75ba3809355e65c965765d0a (patch) | |
| tree | 4c46dbf9c3cd102c596ea07dccb1d15403b7077c /addons/mail/security/mail_security.xml | |
| parent | 55700ac6616b2fdc77caed5d0953df0a48fba4c7 (diff) | |
[IMP] mail.followers: users can now read their own subscriptions.
bzr revid: tde@openerp.com-20121015151127-5abtwg8uraj0du0u
Diffstat (limited to 'addons/mail/security/mail_security.xml')
| -rw-r--r-- | addons/mail/security/mail_security.xml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/addons/mail/security/mail_security.xml b/addons/mail/security/mail_security.xml index be3bb667628..c8d37f333c7 100644 --- a/addons/mail/security/mail_security.xml +++ b/addons/mail/security/mail_security.xml @@ -3,13 +3,22 @@ <data> <!-- RULES --> - <record id="group_rule_public_and_joined" model="ir.rule"> + <record id="mail_group_public_and_joined" model="ir.rule"> <field name="name">Mail.group: access only public and joined groups</field> <field name="model_id" ref="model_mail_group"/> <!-- This rule has to be improved for employee only groups --> <field name="domain_force">['|', '|', ('public', '=', 'public'), ('message_follower_ids', 'in', [user.partner_id.id]), '&', ('public','=','groups'), ('group_public_id','in', [g.id for g in user.groups_id])]</field> </record> + <record id="mail_followers_read_own" model="ir.rule"> + <field name="name">mail.followers: read its own entries</field> + <field name="model_id" ref="model_mail_followers"/> + <!-- This rule has to be improved for employee only groups --> + <field name="domain_force">[('partner_id', '=', user.partner_id.id)]</field> + <field name="perm_create" eval="False"/> + <field name="perm_unlink" eval="False"/> + </record> + <!-- This rule can not be uncommented, because we have a more wide method in mail.message. When we implement a many2one_variable field, we will be able to uncomment this. |
