Skip to content

Commit

Permalink
Fix display menu permission (CO-2141)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Sep 22, 2021
1 parent b18975f commit 8a6c157
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/src/Controller/Component/AuthorizationComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ public function menuPermissions($username, $matchgridId=null) {
'attribute_groups' => $platformAdmin || $mgAdmin,
'attribute_maps' => $platformAdmin || $mgAdmin,
'attributes' => $platformAdmin || $mgAdmin,
'display' => $platformAdmin || $mgAdmin, // || $recMgr, this isn't yet implemented in the controller
'matchgrid_settings' => $platformAdmin || $mgAdmin,
'rules' => $platformAdmin || $mgAdmin,
'systems_of_record' => $platformAdmin || $mgAdmin,
Expand Down
2 changes: 1 addition & 1 deletion app/src/Template/Element/menuMain.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
['escape' => false]);
?>
</li>
<?php if($vv_menu_permissions['gridroles']): ?>
<?php if($vv_menu_permissions['display']): ?>
<li class="configMenu">
<?= $this->Html->link(
'<em class="material-icons" aria-hidden="true">list</em>
Expand Down

0 comments on commit 8a6c157

Please sign in to comment.