L
L
lacapitan2019-10-07 18:05:51
1C-Bitrix
lacapitan, 2019-10-07 18:05:51

How to remove marketing (on the left) for a group of users in 1CBitrix?

Good evening.
I set up rights for store sellers. Tell me how to remove marketing (on the left) for a group of users (Administrators of an online store)?
On the Access tab, everything is closed except Online Store: Order Processing.
5d9b535bc83f1175993812.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yaroslav Alexandrov, 2019-10-08
@lacapitan

In /php_interface/init.php using the handler, add a check for the desired group to it. In the example, the menu item is simply removed.

AddEventHandler("main", "OnBuildGlobalMenu", "MyOnBuildGlobalMenu");
function MyOnBuildGlobalMenu(&$aGlobalMenu, &$aModuleMenu)
{
    // Убрать "маркетинг"
    unset($aGlobalMenu["global_menu_marketing"]);
}

To protect against direct access to a well-known marketing URL, read here
How can a user set viewing rights in the admin panel of the "Search phrase statistics" page?
You can check the user's group, the page on which he is located and disable the display $APPLICATION->ShowPanel = false;
Without a panel, the user will not do anything there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question