8namespace Bitrix\Socialnetwork\Item;
10use Bitrix\Main\UserAccessTable;
11use Bitrix\Socialnetwork\LogRightTable;
15 public static function get(
int $logId = 0)
24 if (!empty($cache[$logId]))
26 return $cache[$logId];
31 $res = LogRightTable::getList([
35 'select' => [
'GROUP_CODE' ]
37 while ($logRightFields =
$res->fetch())
39 $result[] = $logRightFields[
'GROUP_CODE'];
50 if (!in_array(
'G2', $logRights,
true) && in_array(
'AU', $logRights,
true))
56 $queryResult = UserAccessTable::query()
61 ->whereIn(
'ACCESS_CODE', $logRights)
65 while ($item = $queryResult->fetch())
67 if ((
int)$item[
'ID'] > 0)
78 $primary =
$event->getParameter(
'primary');
79 $logId = (!empty($primary[
'ID']) ? intval($primary[
'ID']) : 0);
85 && !empty(
$fields[
'LOG_UPDATE'])
90 'value' =>
$fields[
'LOG_UPDATE']
static getUserIdsByLogRights(array $logRights)
static OnAfterLogUpdate(\Bitrix\Main\Entity\Event $event)
static setLogUpdate($params=array())
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)