12trait ExtranetUserTrait
14 private function canSeeOwnerIfExtranetUser(SectionModel $sectionModel, AccessibleUser $userModel): bool
17 if ($userModel->isExtranetUser() && Loader::includeModule(
'socialnetwork'))
20 $sectionModel->getType() === Dictionary::CALENDAR_TYPE[
'user']
21 && $sectionModel->getOwnerId() !== $userModel->getUserId()
26 elseif ($sectionModel->getType() === Dictionary::CALENDAR_TYPE[
'group'])
28 $userRole = \CSocNetUserToGroup::GetUserRole($userModel->getUserId(), $sectionModel->getOwnerId());
32 elseif($sectionModel->getType() === Dictionary::CALENDAR_TYPE[
'company'])