• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/classes/general/user.php
  • Класс: CSecurityUser
  • Вызов: CSecurityUser::IsUserSkipMandatoryRights
static function IsUserSkipMandatoryRights($userId)
{
	if (!intval($userId))
		return false;

	if (!static::IsOtpMandatory())
		return true;

	$otp = static::getCachedOtp($userId);
	return $otp->canSkipMandatoryByRights();
}