1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
GroupConvertRule.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
6
11
13{
15 protected $controller;
16
17 public function execute(AccessibleItem $item = null, $params = null): bool
18 {
19 if (!$item instanceof GroupModel)
20 {
21 $this->controller->addError(static::class, 'Wrong instance');
22
23 return false;
24 }
25
26 if ($this->user->getUserId() !== $item->getOwnerId())
27 {
28 $this->controller->addError(static::class, 'Access denied by not-owner role');
29
30 return false;
31 }
32
33 return true;
34 }
35}
execute(AccessibleItem $item=null, $params=null)
Определения GroupConvertRule.php:17
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения template.php:799