src/Oro/Bundle/MagentoBundle/Datagrid/AbstractTwoWaySyncActionPermissionProvider.php 1 location
|
@@ 33-41 (lines=9) @@
|
| 30 |
|
* |
| 31 |
|
* @return bool |
| 32 |
|
*/ |
| 33 |
|
protected function isChannelApplicable(ResultRecordInterface $record, $checkExtension = true) |
| 34 |
|
{ |
| 35 |
|
$channelId = $record->getValue(self::CHANNEL_KEY); |
| 36 |
|
if (!$channelId) { |
| 37 |
|
return false; |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
return $this->channelSettingsProvider->isChannelApplicable($channelId, $checkExtension); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Oro/Bundle/MagentoBundle/Datagrid/NewsletterSubscriberPermissionProvider.php 1 location
|
@@ 81-90 (lines=10) @@
|
| 78 |
|
* |
| 79 |
|
* @return bool |
| 80 |
|
*/ |
| 81 |
|
protected function isChannelApplicable(ResultRecordInterface $record, $checkExtension = true) |
| 82 |
|
{ |
| 83 |
|
$channelId = $this->getChannelId($record); |
| 84 |
|
|
| 85 |
|
if (!$channelId) { |
| 86 |
|
return false; |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
return $this->channelSettingsProvider->isChannelApplicable($channelId, $checkExtension); |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
/** |
| 93 |
|
* @param ResultRecordInterface $record |