P
P
Paul_Morte2020-07-11 14:22:10
1C-Bitrix
Paul_Morte, 2020-07-11 14:22:10

How to remove access from administrators in 1C-BITRIX?

How to make it so that the "shop administrator" (this is a new group of users) sees only the "Shop" in the site's administration panel, and all other menu items (Marketplace, Content, etc.) are hidden for him?

5f09a050a8108867540877.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PetrPo, 2020-07-11
@Paul_Morte

Not at the administration level. You can subscribe to the OnBuildGlobalMenu event and, depending on the group, remove the menu item, but you can still go to the direct link
In the event to remove the menu item, for example, "Marketplace"

// .........
foreach($aModuleMenu as $key => $menu) {
  if($menu['parent_menu'] == 'global_menu_marketplace')
    unset($aModuleMenu[$key]);
}
// .........

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question