skip authorization in adding subscriber on targets
This commit is contained in:
parent
0510de5eab
commit
39854239fb
1 changed files with 1 additions and 1 deletions
|
@ -1568,7 +1568,7 @@ App::post('/v1/messaging/topics/:topicId/subscribers')
|
|||
throw new Exception(Exception::TOPIC_NOT_FOUND);
|
||||
}
|
||||
|
||||
$target = $dbForProject->getDocument('targets', $targetId);
|
||||
$target = Authorization::skip(fn () => $dbForProject->getDocument('targets', $targetId));
|
||||
|
||||
if ($target->isEmpty()) {
|
||||
throw new Exception(Exception::USER_TARGET_NOT_FOUND);
|
||||
|
|
Loading…
Reference in a new issue