From d6f3ee9758bebcb90449cb3b457e4f29489baf91 Mon Sep 17 00:00:00 2001 From: "xavier.guiboud-ribaud@combodo.com" Date: Tue, 26 Nov 2024 10:17:52 +0100 Subject: [PATCH] 7746 - Caselog edition button active even if the user has a read-only access to the object Coding conventions compliance --- .../Application/UI/Base/Layout/ActivityPanel/ActivityPanel.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/Application/UI/Base/Layout/ActivityPanel/ActivityPanel.php b/sources/Application/UI/Base/Layout/ActivityPanel/ActivityPanel.php index 3f13e4ee0..89454737d 100644 --- a/sources/Application/UI/Base/Layout/ActivityPanel/ActivityPanel.php +++ b/sources/Application/UI/Base/Layout/ActivityPanel/ActivityPanel.php @@ -979,7 +979,8 @@ class ActivityPanel extends UIBlock * @return bool * @throws \CoreException */ - protected function HasUserModifyRights(): bool { + protected function HasUserModifyRights(): bool + { return \UserRights::IsActionAllowed($this->GetObjectClass(), UR_ACTION_MODIFY); } } \ No newline at end of file