mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +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 ($creatorACL->has_right(\ACL::BAS_CHUPUB)) {
|
||||
$data = $webhookEvent->getData();
|
||||
if (isset($data['entry_id'])) {
|
||||
/** @var FeedEntry $feedEntry */
|
||||
$feedEntry = $this->app['repo.feed-entries']->find($data['entry_id']);
|
||||
if ($feedEntry->getFeed()->isPublisher($creator)) {
|
||||
$checked = true;
|
||||
}
|
||||
$data = $webhookEvent->getData();
|
||||
if (isset($data['entry_id'])) {
|
||||
/** @var FeedEntry $feedEntry */
|
||||
$feedEntry = $this->app['repo.feed-entries']->find($data['entry_id']);
|
||||
if ($feedEntry->getFeed()->isPublisher($creator)) {
|
||||
$checked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user