Your IP : 3.137.215.122


Current Path : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/modules/forum/lib/controller/
Upload File :
Current File : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/modules/forum/lib/controller/topic.php

<?php

namespace Bitrix\Forum\Controller;

use Bitrix\Main;
use Bitrix\Forum;

class Topic extends Main\Engine\Controller
{
	public function headAction($topicId)
	{
		if (($topic = Forum\Topic::getById($topicId)) !== null)
		{
			global $USER;
			$user = Forum\User::getById($USER->GetID());
			if ($user->canReadTopic($topic))
			{
				return $topic->getData();
			}
		}
		return null;
	}
}