File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/sale/lib/helpers/rest/accesschecker.php
Back
<?php namespace Bitrix\Sale\Helpers\Rest; use Bitrix\Main; use Bitrix\Rest\AccessException; /** * Class Permissions * @package Bitrix\Sale\Helpers\Rest * @internal */ class AccessChecker { /** * @throws AccessException */ public static function checkAccessPermission() { global $APPLICATION, $USER; if (Main\ModuleManager::isModuleInstalled('intranet') && Main\Loader::includeModule('crm')) { $crmPerms = new \CCrmPerms($USER->GetID()); if (!$crmPerms->HavePerm('CONFIG', BX_CRM_PERM_CONFIG, 'WRITE')) { throw new AccessException(); } } else { $saleModulePermissions = $APPLICATION::GetGroupRight('sale'); if ($saleModulePermissions < 'W') { throw new AccessException(); } } } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings