12 private function isOwner(SectionModel $section,
int $userId): bool
15 $section->getType() === Event\Tools\Dictionary::CALENDAR_TYPE[
'user']
16 && $section->getOwnerId() ===
$userId
20 private function isManager(SectionModel $section,
int $userId): bool
22 $settings = \CCalendar::GetSettings(array(
'request' =>
false));
25 Loader::includeModule(
'intranet')
26 && $section->getType() === Event\Tools\Dictionary::CALENDAR_TYPE[
'user']
27 && ($settings[
'dep_manager_sub'] ??
false)
static isManagerForUser($managerId, $userId)