1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
BaseIblockRule.php
См. документацию.
1<?php
2
4
11
13{
14 /* @var AccessController $controller */
15 /* @var UserModel $user */
16
24 public function execute(AccessibleItem $item = null, $params = null): bool
25 {
26 if ($this->user->isAdmin())
27 {
28 return true;
29 }
30
31 return $this->check($params);
32 }
33
41 protected function check($params): bool
42 {
43 $groups = $this->user->getRightGroups();
44
45 $shopGroupIds = [];
46 foreach ($this->getShopIblockTypes() as $groupCode)
47 {
48 $groupId = \CGroup::GetIDByCode($groupCode);
49 if ($groupId)
50 {
51 $shopGroupIds[] = $groupId;
52 }
53 }
54
55 if (empty($shopGroupIds))
56 {
57 return false;
58 }
59
60 return !empty(array_intersect($groups, $shopGroupIds));
61 }
62
70}
execute(AccessibleItem $item=null, $params=null)
Определения BaseIblockRule.php:24
Определения group.php:32
static GetIDByCode($code)
Определения group.php:1502
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$groups
Определения options.php:30
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения template.php:799