Documentation

setOn

Rights::setOn(
);

Method has no parameters. Enables check for any access permissions.

Examples

if (\Bitrix\Main\Loader::includeModule('landing'))
{
   Rights::setOff();
   //then executes code without access permissions check
   Rights::setOn();
   //now checks current user access permissions again
}


© «Bitrix24», 2001-2024