Documentation

setOff

Rights::setOff(
);

Method without parameters. Temporarily disables any access permission check.

Example

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

You can also use the constant LANDING_DISABLE_RIGHTS. Enabling this constant disables any access permission check within current page:

define('LANDING_DISABLE_RIGHTS', true);


© «Bitrix24», 2001-2024