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/im_livechat_channel_security.xml | 40 ++++++++++++++++++++++ addons/im_livechat/security/ir.model.access.csv | 9 +++++ 2 files changed, 49 insertions(+) create mode 100644 addons/im_livechat/security/im_livechat_channel_security.xml create mode 100644 addons/im_livechat/security/ir.model.access.csv (limited to 'addons/im_livechat/security') diff --git a/addons/im_livechat/security/im_livechat_channel_security.xml b/addons/im_livechat/security/im_livechat_channel_security.xml new file mode 100644 index 00000000..89c1910e --- /dev/null +++ b/addons/im_livechat/security/im_livechat_channel_security.xml @@ -0,0 +1,40 @@ + + + + + Live Chat + + + + + User + + The user will be able to join support channels. + + + + Administrator + The user will be able to delete support channels. + + + + + + + + Livechat: Administrator: read all livechat channel + + + [('channel_type', '=', 'livechat')] + + + + + + + + + + + + diff --git a/addons/im_livechat/security/ir.model.access.csv b/addons/im_livechat/security/ir.model.access.csv new file mode 100644 index 00000000..c8c52517 --- /dev/null +++ b/addons/im_livechat/security/ir.model.access.csv @@ -0,0 +1,9 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_livechat_channel,im_livechat.channel,model_im_livechat_channel,,1,0,0,0 +access_livechat_channel_user,im_livechat.channel.user,model_im_livechat_channel,im_livechat_group_user,1,1,1,0 +access_livechat_channel_manager,im_livechat.channel.manager,model_im_livechat_channel,im_livechat_group_manager,1,1,1,1 +access_livechat_support_report_channel,im_livechat.report.channel,model_im_livechat_report_channel,im_livechat_group_manager,1,1,1,1 +access_livechat_support_report_operator,im_livechat.report.operator,model_im_livechat_report_operator,im_livechat_group_manager,1,1,1,1 +access_livechat_channel_rule,im_livechat.channel.rule,model_im_livechat_channel_rule,,1,0,0,0 +access_livechat_channel_rule_user,im_livechat.channel.rule,model_im_livechat_channel_rule,im_livechat_group_user,1,1,1,0 +access_livechat_channel_rule_manager,im_livechat.channel.rule,model_im_livechat_channel_rule,im_livechat_group_manager,1,1,1,1 -- cgit v1.2.3