From 1b75fc6d95fb15df7908962075b589b5855a5533 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 9 Apr 2014 15:10:16 +0200 Subject: [PATCH] [IMP] lunch: add security rules, it's very impolite to look in other people plates bzr revid: mat@openerp.com-20140409131016-kzx7scln4daz14xj --- addons/lunch/security/lunch_security.xml | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/addons/lunch/security/lunch_security.xml b/addons/lunch/security/lunch_security.xml index e01fab71ea2..5f2a351472c 100644 --- a/addons/lunch/security/lunch_security.xml +++ b/addons/lunch/security/lunch_security.xml @@ -16,5 +16,43 @@ + + + lunch.order: do not see and create other people's order + + + [('user_id', '=', user.id)] + + + lunch.order: do not see and create other people's order + + + [(1, '=', 1)] + + + lunch.order.line: do not see and create other people's order line + + + [('user_id', '=', user.id)] + + + lunch.order.line: do not see and create other people's order line + + + [(1, '=', 1)] + + + lunch.cashmove: do not see and create other people's cashmove + + + [('user_id', '=', user.id)] + + + lunch.cashmove: do not see and create other people's cashmove + + + [(1, '=', 1)] + +