Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
CatalogRightsEditRule.php
1<?php
2
4
7
9{
17 public function execute(AccessibleItem $item = null, $params = null): bool
18 {
19 if (!Feature::isAccessControllerCheckingEnabled())
20 {
21 return false;
22 }
23
24 return parent::execute($item, $params);
25 }
26
27 public function getPermissionValue($params): ?int
28 {
29 if ($this->user->isAdmin())
30 {
31 return 1;
32 }
33
34 return parent::getPermissionValue($params);
35 }
36}
execute(AccessibleItem $item=null, $params=null)