Documentation

setOn

Rights::setOn(
);

Method without parameters. Enables any access permissions check.

Example

if (\Bitrix\Main\Loader::includeModule('landing'))
{
   Rights::setOff();
   //next code is printed without access permissions check
   Rights::setOn();
   //now user access permissions are check is enabled once again
}


© «Bitrix24», 2001-2024
Up