| Current Path : /home/rtorresani/www/vendor/magento/module-review/Block/Adminhtml/Product/Edit/ |
| Current File : //home/rtorresani/www/vendor/magento/module-review/Block/Adminhtml/Product/Edit/Tab.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Review\Block\Adminhtml\Product\Edit;
/**
* @api
* @since 100.0.2
*/
class Tab extends \Magento\Backend\Block\Widget\Tab
{
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param array $data
*/
public function __construct(
\Magento\Backend\Block\Template\Context $context,
array $data = []
) {
parent::__construct($context, $data);
if (!$this->_request->getParam('id') || !$this->_authorization->isAllowed('Magento_Review::reviews_all')) {
$this->setCanShow(false);
}
}
}