From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/survey/security/survey_security.xml | 184 +++++++++++++++++++++++++++++ 1 file changed, 184 insertions(+) create mode 100644 addons/survey/security/survey_security.xml (limited to 'addons/survey/security/survey_security.xml') diff --git a/addons/survey/security/survey_security.xml b/addons/survey/security/survey_security.xml new file mode 100644 index 00000000..a9537b73 --- /dev/null +++ b/addons/survey/security/survey_security.xml @@ -0,0 +1,184 @@ + + + + + Helps you manage your survey for review of different-different users. + 20 + + + + + User + + + + + + Administrator + + + + + + + + + + + + Survey: manager: all + + [(1, '=', 1)] + + + + + + + + Survey: officer: read all + + [(1, '=', 1)] + + + + + + + + Survey: officer: create/write/unlink own only + + [('create_uid', '=', user.id)] + + + + + + + + + Survey question: manager: all + + [(1, '=', 1)] + + + + + + + + Survey question: officer: read all + + [(1, '=', 1)] + + + + + + + + Survey question: officer: create/write/unlink linked to own survey only + + [('survey_id.create_uid', '=', user.id)] + + + + + + + + + Survey question answer: manager: all + + [(1, '=', 1)] + + + + + + + + Survey question answer: officer: read all + + [(1, '=', 1)] + + + + + + + + Survey question answer: officer: create/write/unlink linked to own survey only + + ['|', ('question_id.survey_id.create_uid', '=', user.id), ('matrix_question_id.survey_id.create_uid', '=', user.id)] + + + + + + + + + + Survey user input: manager: all + + [(1, '=', 1)] + + + + + + + + Survey user input: officer: read all + + [(1, '=', 1)] + + + + + + + + Survey user input: officer: create/write/unlink linked to own survey only + + [('survey_id.create_uid', '=', user.id)] + + + + + + + + + Survey user input line: manager: all + + [(1, '=', 1)] + + + + + + + + Survey user input line: officer: read all + + [(1, '=', 1)] + + + + + + + + Survey user input line: officer: create/write/unlink linked to own survey only + + [('user_input_id.survey_id.create_uid', '=', user.id)] + + + + + + + + -- cgit v1.2.3