details: https://code.tryton.org/tryton/commit/894bc17c7049
branch: 7.6
user: Nicolas Évrard <[email protected]>
date: Thu Oct 02 09:44:58 2025 +0200
description:
Correctly get model and id of resource when checking the Channel access
rights
(grafted from d3c356d9a99a644871c4c0bcf04c0ba70b0887b8)
diffstat:
trytond/trytond/ir/chat.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r d79a22793363 -r 894bc17c7049 trytond/trytond/ir/chat.py
--- a/trytond/trytond/ir/chat.py Thu Oct 16 16:07:52 2025 +0200
+++ b/trytond/trytond/ir/chat.py Thu Oct 02 09:44:58 2025 +0200
@@ -58,7 +58,7 @@
def check_access(cls, resource):
pool = Pool()
ModelAccess = pool.get('ir.model.access')
- model, id_ = resource.split(',')
+ model, id_ = str(resource).split(',')
ModelAccess.check(model, mode='read')
# TODO check record rule