mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
just use feed publisher on feed_entry
This commit is contained in:
@@ -395,15 +395,12 @@ class WebhookWorker implements WorkerInterface
|
|||||||
];
|
];
|
||||||
|
|
||||||
if ($webhookEvent->getType() === WebhookEvent::FEED_ENTRY_TYPE) {
|
if ($webhookEvent->getType() === WebhookEvent::FEED_ENTRY_TYPE) {
|
||||||
|
$data = $webhookEvent->getData();
|
||||||
if ($creatorACL->has_right(\ACL::BAS_CHUPUB)) {
|
if (isset($data['entry_id'])) {
|
||||||
$data = $webhookEvent->getData();
|
/** @var FeedEntry $feedEntry */
|
||||||
if (isset($data['entry_id'])) {
|
$feedEntry = $this->app['repo.feed-entries']->find($data['entry_id']);
|
||||||
/** @var FeedEntry $feedEntry */
|
if ($feedEntry->getFeed()->isPublisher($creator)) {
|
||||||
$feedEntry = $this->app['repo.feed-entries']->find($data['entry_id']);
|
$checked = true;
|
||||||
if ($feedEntry->getFeed()->isPublisher($creator)) {
|
|
||||||
$checked = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user