Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Service.php
1<?php
2
4
6
7final class Service
8{
9 public static function isAvailable(bool $isPublic = false): bool
10 {
11 if ($isPublic)
12 {
13 return \CUserOptions::getOption('socialnetwork.space', 'space_enabled', 'N') === 'Y';
14 }
15
16 $isSpaceEnabled = Option::get('socialnetwork', 'space_enabled', 'N') === 'Y';
17 if (!$isSpaceEnabled)
18 {
19 return \CUserOptions::getOption('socialnetwork.space', 'space_enabled', 'N') === 'Y';
20 }
21
22 return true;
23 }
24}
static isAvailable(bool $isPublic=false)
Definition Service.php:9