diff --git a/app/templates/element/subnavigation.php b/app/templates/element/subnavigation.php index d93593127..bb624ad0c 100644 --- a/app/templates/element/subnavigation.php +++ b/app/templates/element/subnavigation.php @@ -207,7 +207,8 @@ print $this->Html->link( __d('controller', 'People', [1]), [ 'controller' => 'people', - 'action' => $curAction == 'edit' ? 'edit' : 'view', + // TODO: the following test needs to be made based on read-only status of the Person + 'action' => $curAction == 'view' ? 'view' : 'edit', $curId ], ['class' => $linkClass] @@ -267,7 +268,8 @@ print $this->Html->link( __d('controller', 'Properties', [99]), [ 'controller' => 'groups', - 'action' => $curAction == 'edit' ? 'edit' : 'view', + // TODO: the following test needs to be made based on read-only status of the group + 'action' => $curAction == 'view' ? 'view' : 'edit', $curId ], ['class' => $linkClass]