138 $socnetGroupId = intval($this->socnetGroupId);
139 if ($socnetGroupId && Loader::includeModule(
"socialnetwork"))
141 $socnetGroup = \CSocNetGroup::getByID($socnetGroupId);
143 is_array($socnetGroup) &&
144 $socnetGroup[
"CLOSED"] ==
"Y" &&
145 !\CSocNetUser::isCurrentUserModuleAdmin() &&
146 ($socnetGroup[
"OWNER_ID"] != $this->
getUser()->getID() ||
147 Option::get(
"socialnetwork",
"work_with_closed_groups",
"N") !=
"Y")