Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/modules/messageservice/lib/Restriction/
Upload File :
Current File : /var/www/homesaver/www/bitrix/modules/messageservice/lib/Restriction/SkippingUnauthorized.php

<?php

namespace Bitrix\MessageService\Restriction;

trait SkippingUnauthorized
{
	public function isCanSend(): bool
	{
		if ($this->getEntity() === '0')
		{
			return true;
		}
		return parent::isCanSend();
	}

	public function increase(): bool
	{
		if ($this->getEntity() === '0')
		{
			return true;
		}

		return parent::increase();
	}
}