From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- .../security/gamification_security.xml | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 addons/gamification/security/gamification_security.xml (limited to 'addons/gamification/security/gamification_security.xml') diff --git a/addons/gamification/security/gamification_security.xml b/addons/gamification/security/gamification_security.xml new file mode 100644 index 00000000..574c89cc --- /dev/null +++ b/addons/gamification/security/gamification_security.xml @@ -0,0 +1,36 @@ + + + + User can only see his/her goals or goal from the same challenge in board visibility + + + + + + + [ + '|', + ('user_id','=',user.id), + '&', + ('challenge_id.user_ids','in',user.id), + ('challenge_id.visibility_mode','=','ranking')] + + + + Manager can see any goal + + + + + + + [(1, '=', 1)] + + + + Multicompany rule on challenges + + [('user_id.company_id', 'in', company_ids)] + + + -- cgit v1.2.3