Answer the question
In order to leave comments, you need to log in
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.
Answer the question
In order to leave comments, you need to log in
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"]);
}
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 questionAsk a Question
731 491 924 answers to any question