File: //proc/self/cwd/nueva/modules/pmproductvideoreviews/controllers/admin/AdminRecReviews.php
<?php
/**
* rec.reviews
*
* @author Presta-Module.com <support@presta-module.com> - https://www.presta-module.com
* @copyright Presta-Module - https://www.presta-module.com
* @license see file: LICENSE.txt
*
* ____ __ __
* | _ \ | \/ |
* | |_) | | |\/| |
* | __/ | | | |
* |_| |_| |_|
*/
if (!defined('_PS_VERSION_')) {
exit;
}
use RecReviews\Client as RecReviewsClient;
use PrestaModule\ProductVideoReviews\Utils;
class AdminRecReviewsController extends ModuleAdminController
{
/**
* init content
*
* @since 1.0.0
*
* @return mixed
*/
public function initContent()
{
parent::initContent();
if (!empty(Utils::isOauthed())) {
$moderation_link = !empty(Configuration::get('PVR_API_SHOP_ID')) ? RecReviewsClient::API_URL . 'dashboard/' . Configuration::get('PVR_API_SHOP_ID') . '/' : '#';
Tools::redirect($moderation_link);
}
}
}