• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/rooms/util.php
  • Класс: BitrixCalendarRoomsUtil
  • Вызов: Util::getLocationAccess
static function getLocationAccess($userId): bool
{
	$typeModel = TypeModel::createFromXmlId(Dictionary::CALENDAR_TYPE['location']);

	$access = (new TypeAccessController($userId))->check(ActionDictionary::ACTION_TYPE_EDIT, $typeModel, []);

	if (Loader::includeModule('extranet'))
	{
		$access = $access && CExtranet::IsIntranetUser(SITE_ID, $userId);
	}

	return $access;
}