Documentation

hasAdditionalRight

Rights::hasAdditionalRight(
   $code
);

Method verifies of current user has access permissions to a specific access permission type.

Parameters

Method Description Available from version
code Presently can have the following values:
  • menu24 - menu visibility for user in Bitrix24 public section.
  • create- can user create new sites in Bitrix24 public section.

Example

if (CModule::IncludeModule('landing'))
{
   if (\Bitrix\Landing\Rights::hasAdditionalRight('menu24'))
   {
      echo 'Пункт меню Сайты24 доступен';
   }
}


© «Bitrix24», 2001-2024
Up