mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +00:00
just use feed publisher on feed_entry
This commit is contained in:
@@ -395,8 +395,6 @@ class WebhookWorker implements WorkerInterface
|
|||||||
];
|
];
|
||||||
|
|
||||||
if ($webhookEvent->getType() === WebhookEvent::FEED_ENTRY_TYPE) {
|
if ($webhookEvent->getType() === WebhookEvent::FEED_ENTRY_TYPE) {
|
||||||
|
|
||||||
if ($creatorACL->has_right(\ACL::BAS_CHUPUB)) {
|
|
||||||
$data = $webhookEvent->getData();
|
$data = $webhookEvent->getData();
|
||||||
if (isset($data['entry_id'])) {
|
if (isset($data['entry_id'])) {
|
||||||
/** @var FeedEntry $feedEntry */
|
/** @var FeedEntry $feedEntry */
|
||||||
@@ -406,7 +404,6 @@ class WebhookWorker implements WorkerInterface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// for user created and phantom user deleted
|
// for user created and phantom user deleted
|
||||||
if (empty($baseIds) && $webhookEvent->getType() === WebhookEvent::USER_TYPE && empty($webhookEvent->getCollectionBaseIds()) ) {
|
if (empty($baseIds) && $webhookEvent->getType() === WebhookEvent::USER_TYPE && empty($webhookEvent->getCollectionBaseIds()) ) {
|
||||||
|
Reference in New Issue
Block a user