BlogPostConnector::canEdit

  1. Bitrix24 API (v. 23.675.0)
  2. vote
  3. BlogPostConnector
  4. canEdit
  • Модуль: vote
  • Путь к файлу: ~/bitrix/modules/vote/lib/attachment/blogpostconnector.php
  • Класс: BitrixVoteAttachmentBlogPostConnector
  • Вызов: BlogPostConnector::canEdit
public function canEdit($userId)
{
	if ($this->entityId === null)
		return true;
	if(is_null($this->canEdit))
		$this->canEdit = $this->getPermission($userId) > BLOG_PERMS_MODERATE;

	return $this->canEdit;
}

Добавить комментарий