summaryrefslogtreecommitdiff
path: root/addons/note/security
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2012-09-14 12:14:18 +0200
committerChristophe Matthieu <chm@openerp.com>2012-09-14 12:14:18 +0200
commita15456ba0f3ff40bcf5bd95167880a9f856d05a6 (patch)
tree6e45039c07bbae802e512c5d93d90c463bb2c91a /addons/note/security
parent3ff81d91f9586ad02572f7ecd90688f163cba228 (diff)
[FIX] note: access rules
bzr revid: chm@openerp.com-20120914101418-7bpc4aecprfz1vvt
Diffstat (limited to 'addons/note/security')
-rw-r--r--addons/note/security/ir.model.access.csv6
-rw-r--r--addons/note/security/ir.rule.xml4
2 files changed, 5 insertions, 5 deletions
diff --git a/addons/note/security/ir.model.access.csv b/addons/note/security/ir.model.access.csv
index 6c5ea823d96..cbe11cba94e 100644
--- a/addons/note/security/ir.model.access.csv
+++ b/addons/note/security/ir.model.access.csv
@@ -1,4 +1,4 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
-access_note_stage,note.stage,model_note_stage,,1,1,1,1
-access_note_note,note.note,model_note_note,,1,1,1,1
-access_note_tag,note.tag,model_note_tag,,1,1,1,1
+access_note_stage,note.stage,model_note_stage,base.group_user,1,1,1,1
+access_note_note,note.note,model_note_note,base.group_user,1,1,1,1
+access_note_tag,note.tag,model_note_tag,base.group_user,1,1,1,1
diff --git a/addons/note/security/ir.rule.xml b/addons/note/security/ir.rule.xml
index 4eab169519f..82994b960c2 100644
--- a/addons/note/security/ir.rule.xml
+++ b/addons/note/security/ir.rule.xml
@@ -2,9 +2,9 @@
<openerp>
<data>
<record id="note_note_rule_global" model="ir.rule">
- <field name="name">Only followers can read a memos</field>
+ <field name="name">Only followers can access a sticky notes</field>
<field model="ir.model" ref="model_note_note" name="model_id"/>
- <field name="domain_force">['|',('message_follower_ids.id','=',user.partner_id.id),('message_follower_ids','=',False)]</field>
+ <field name="domain_force">['|',('message_follower_ids','=',False),('message_follower_ids','=',user.partner_id.id)]</field>
<field eval="True" name="global"/>
</record>
</data>