mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: collection level permissions
This commit is contained in:
@@ -207,7 +207,14 @@ App::shutdown(function ($utopia, $request, $response, $project, $events, $audits
|
||||
|
||||
if ($project->getId() !== 'console') {
|
||||
$payload = new Document($response->getPayload());
|
||||
$target = Realtime::fromPayload($events->getParam('event'), $payload, $project);
|
||||
$collection = new Document($events->getParam('collection'));
|
||||
|
||||
$target = Realtime::fromPayload(
|
||||
event: $events->getParam('event'),
|
||||
payload: $payload,
|
||||
project: $project,
|
||||
collection: $collection
|
||||
);
|
||||
|
||||
Realtime::send(
|
||||
$target['projectId'] ?? $project->getId(),
|
||||
|
||||
Reference in New Issue
Block a user