From dc706b7a501508882551b0141a9ad826042a54eb Mon Sep 17 00:00:00 2001 From: Benn Oshrin Date: Mon, 7 Oct 2024 20:51:04 -0400 Subject: [PATCH] Fix Properties link for read only Groups (NOJIRA) --- app/templates/element/subnavigation.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/templates/element/subnavigation.php b/app/templates/element/subnavigation.php index 22f3461c2..eb41f1f40 100644 --- a/app/templates/element/subnavigation.php +++ b/app/templates/element/subnavigation.php @@ -290,8 +290,7 @@ print $this->Html->link( __d('controller', 'Properties', [99]), [ 'controller' => 'groups', - // TODO: the following test needs to be made based on read-only status of the group - 'action' => $curAction == 'view' ? 'view' : 'edit', + 'action' => $vv_primary_link_obj->isReadOnly() ? 'view' : 'edit', $curId ], ['class' => $linkClass]