From 4662ed2732ca877519f7b86160c26bc21af0b2e8 Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Tue, 16 Nov 2021 12:10:56 +0200 Subject: [PATCH] Render VO Root population link only once under Main Menu --- CHANGELOG.md | 7 +++++++ app/View/Elements/menuMain.ctp | 22 ++++++++++++---------- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6873db3d..1bc6cd728 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +## [3.3.7-rciam] - 2021-11-16 + +### Fixed + +- Grant CO Person view permisions for Identifiers Model to self +- Render root VO Population link only once under Main Menu + ## [3.3.6-rciam] - 2021-11-15 ### Fixed diff --git a/app/View/Elements/menuMain.ctp b/app/View/Elements/menuMain.ctp index 6c110ef6d..62e0742a3 100644 --- a/app/View/Elements/menuMain.ctp +++ b/app/View/Elements/menuMain.ctp @@ -71,17 +71,19 @@ // print parent cou if any if(!empty($permissions['menu']['admincous_root'])) { foreach ($permissions['menu']['admincous_root'] as $couid => $couname) { - print '
  • '; - $args = array(); - $args['plugin'] = null; - $args['controller'] = 'co_people'; - $args['action'] = 'index'; - $args['co'] = $menuCoId; - $args['Search.couid'] = $couid; + if(!isset($permissions['menu']['admincous'][$couid])) { + print '
  • '; + $args = array(); + $args['plugin'] = null; + $args['controller'] = 'co_people'; + $args['action'] = 'index'; + $args['co'] = $menuCoId; + $args['Search.couid'] = $couid; - print $this->Html->link(_txt('me.population.cou', array($couname)), $args, array('class' => 'spin')); - print ''; - print "
  • "; + print $this->Html->link(_txt('me.population.cou', array($couname)), $args, array('class' => 'spin')); + print ''; + print ""; + } } } foreach ($permissions['menu']['admincous'] as $couid => $couname) {