Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
userfieldviewrule.php
1<?php
2
4
9
12{
13 private
14 $userFieldModel = null;
15
17 {
18 parent::__construct($controller);
19 $this->userFieldModel = UserFieldModel::createNew();
20 }
21
22 public function execute(AccessibleItem $userField = null, $params = null): bool
23 {
24 return true;
25 }
26
27 public function executeMass($userFields = null, $params = null): array
28 {
29 if (!$userFields)
30 {
31 return [];
32 }
33
34 if ($this->user->isAdmin())
35 {
36 return [];
37 }
38
42 return $this->userFieldModel->getPermissions(
43 $this->user,
45 );
46 }
47}
execute(AccessibleItem $userField=null, $params=null)