Created
July 30, 2025 09:32
-
-
Save Feiron/200aa9ca26481b48d8390ad1f07f2408 to your computer and use it in GitHub Desktop.
[Bitrix Disk Bitrix24Docs переподключение] #bitrix24#utils
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| -- Если ошибка не могу отключить пользователя через настройки модуля | |
| */ | |
| \CModule::IncludeModule('disk'); | |
| use Bitrix\Disk\Configuration; | |
| use Bitrix\Disk\Document\BitrixHandler; | |
| use Bitrix\Disk\UserConfiguration; | |
| \Bitrix\Main\Loader::requireModule('disk'); | |
| (new \Bitrix\Disk\Document\OnlyOffice\Configuration())->resetCloudRegistration(); | |
| UserConfiguration::resetDocumentServiceForAllUsers(); | |
| Configuration::setDefaultViewerService(BitrixHandler::getCode()); | |
| Bitrix\Disk\Document\Models\DocumentSessionTable::clearTable(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment