Server : Apache System : Linux webm012.cluster129.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : eventfrsgx ( 61451) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/eventfrsgx/www/administrator/components/com_spsimpleportfolio/controllers/ |
<?php
/**
* @package SP Simple Portfolio
*
* @copyright Copyright (C) 2010 - 2022 JoomShaper. All rights reserved.
* @license GNU General Public License version 2 or later.
*/
defined('_JEXEC') or die();
use Joomla\CMS\Factory;
use Joomla\CMS\MVC\Controller\FormController;
class SpsimpleportfolioControllerTag extends FormController {
public function __construct($config = array()) {
parent::__construct($config);
}
protected function allowAdd($data = array()) {
return parent::allowAdd($data);
}
protected function allowEdit($data = array(), $key = 'id') {
$id = isset( $data[ $key ] ) ? $data[ $key ] : 0;
if( !empty( $id ) ) {
return Factory::getUser()->authorise( "core.edit", "com_spsimpleportfolio.tag." . $id );
}
}
}