• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/rightsmanager.php
  • Класс: BitrixDiskRightsManager
  • Вызов: RightsManager::checkUseInternalsRightsOnStorage
private function checkUseInternalsRightsOnStorage(BaseObject $object, $rights)
{
	$storageModel = Storage::loadById($object->getStorageId());
	if($storageModel && !empty($rights) && !$storageModel->isUseInternalRights())
	{
		throw new SystemException('Attempt to set the rights, but not to use the internal rights.');
	}
}