• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/undo.php
  • Класс: CAutoSave
  • Вызов: CAutoSave::Allowed
static function Allowed()
{
	global $USER, $APPLICATION;

	if (!$USER->IsAuthorized())
		return false;

	if (self::$bAllowed == null)
	{
		$arOpt = CUserOptions::GetOption('global', 'settings', []);
		self::$bAllowed = (!isset($arOpt['autosave']) || $arOpt['autosave'] != 'N') && $APPLICATION->GetCurPage() != '/bitrix/admin/update_system.php';
	}

	return self::$bAllowed;
}