Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
DocumentController.php
1<?php
2
4
11
13{
14 public function __construct(array $options)
15 {
16 parent::__construct($options);
17 }
18
19 public function isAvailable(): bool
20 {
21 return AccessController::getCurrent()->check(ActionDictionary::ACTION_CATALOG_READ);
22 }
23
25 {
26 return new Configuration();
27 }
28
29 public function canUpload(): bool
30 {
31 return AccessController::getCurrent()->check(ActionDictionary::ACTION_STORE_VIEW);
32 }
33
34 public function verifyFileOwner(FileOwnershipCollection $files): void
35 {
36 }
37
38 public function canView(): bool
39 {
40 return false;
41 }
42
43 public function canRemove(): bool
44 {
45 return false;
46 }
47}