1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
comment.php
См. документацию.
1<?php
2
4
9
11{
17 public function markAsReadAction(string $workflowId, int $userId): ?bool
18 {
19 $currentUserId = (int)($this->getCurrentUser()?->getId());
20
21 if ($currentUserId !== $userId)
22 {
23 $this->addError(new Error('access denied'));
24
25 return null;
26 }
27
29 $service->markAsRead(new MarkAsReadRequest($workflowId, $userId));
30
31 return true;
32 }
33}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
static addError($error)
Определения base.php:278
markAsReadAction(string $workflowId, int $userId)
Определения comment.php:17
Определения error.php:15
$service
Определения payment.php:18