• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/security/user.php
  • Класс: BitrixSenderSecurityUser
  • Вызов: User::canView
public function canView()
{
	if (!$this->isModuleAccessibleOnPortal())
	{
		return false;
	}

	if ($this->isBroadAccess())
	{
		return true;
	}

	if ($this->isPortalAdmin())
	{
		return true;
	}

	if (is_object($GLOBALS['APPLICATION']) && $GLOBALS['APPLICATION']->getGroupRight('sender') !== "D")
	{
		return true;
	}

	return false;
}