wp_back/wp-content/plugins/smart-slider-3/Nextend/Framework/Acl/Acl.php
2024-05-20 15:37:46 +03:00

31 lines
622 B
PHP

<?php
namespace Nextend\Framework\Acl;
use Nextend\Framework\Acl\Joomla\JoomlaAcl;
use Nextend\Framework\Acl\WordPress\WordPressAcl;
use Nextend\Framework\Pattern\MVCHelperTrait;
class Acl {
/**
* @var AbstractPlatformAcl
*/
private static $instance;
public function __construct() {
self::$instance = new WordPressAcl();
}
/**
* @param $action
* @param MVCHelperTrait $MVCHelper
*
* @return bool
*/
public static function canDo($action, $MVCHelper) {
return self::$instance->authorise($action, $MVCHelper);
}
}
new Acl();