From c40c32bb1f389d1a00b8a7b3cc08c314e7f1a7d8 Mon Sep 17 00:00:00 2001 From: Ruslan-Aleev Date: Fri, 26 Jul 2024 18:10:04 +0400 Subject: [PATCH] Update permission for Settings menu (cog icon) --- _build/data/transport.core.menus.php | 2 +- .../common/3.1.0-policy-permissions-menu-update.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/_build/data/transport.core.menus.php b/_build/data/transport.core.menus.php index e5d2942dc4..7c513e46bf 100644 --- a/_build/data/transport.core.menus.php +++ b/_build/data/transport.core.menus.php @@ -398,7 +398,7 @@ 'text' => 'admin', 'description' => '', 'parent' => 'usernav', - 'permissions' => 'settings', + 'permissions' => 'menu_system', 'action' => '', 'icon' => '', ], '', true, true); diff --git a/setup/includes/upgrades/common/3.1.0-policy-permissions-menu-update.php b/setup/includes/upgrades/common/3.1.0-policy-permissions-menu-update.php index 6cf3522c68..5585c4c5b1 100644 --- a/setup/includes/upgrades/common/3.1.0-policy-permissions-menu-update.php +++ b/setup/includes/upgrades/common/3.1.0-policy-permissions-menu-update.php @@ -31,6 +31,12 @@ 'menu_text' => 'components', 'menu_only' => false, ], + 'settings' => [ + 'name' => 'menu_system', + 'description' => 'perm.menu_system_desc', + 'menu_text' => 'admin', + 'menu_only' => true, + ], ]; // Remove permissions