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) {