Documentation

setOff

Rights::setOff(
);

Method has no parameters. Temporarily disables any access permission check.

Example

if (\Bitrix\Main\Loader::includeModule('landing'))
{
   Rights::setOff();
   //then code executed without access permission check
   Rights::setOn();
   //now access permissions for current user will be checked again
}


© «Bitrix24», 2001-2024