Source of file IsAllowed.php
Size: 0,466 Bytes - Last Modified: 2017-11-08T13:54:24+00:00
/home/travis/build/bluzphp/framework/src/Controller/Helper/IsAllowed.php
123456789101112131415161718192021222324252627282930 | <?php /** * Bluz Framework Component * * @copyright Bluz PHP Team * @link https://github.com/bluzphp/framework */ declare(strict_types=1); namespace Bluz\Controller\Helper; use Bluz\Controller\Controller; use Bluz\Proxy\Acl; /** * Check privilege * * @param $privilege * * @return bool */ return function ($privilege) { /** * @var Controller $this */ return Acl::isAllowed($this->module, $privilege); }; |