• Модуль: forum
  • Путь к файлу: ~/bitrix/modules/forum/lib/comments/workflowentity.php
  • Класс: BitrixForumCommentsWorkflowEntity
  • Вызов: WorkflowEntity::canAdd
public function canAdd($userId)
{
	// you are not allowed to view the task, so you can not add new messages
	if(!$this->checkHasAccess($userId))
	{
		return false;
	}

	return true;
}