public function load() { # change 'guests' to your user roles if (ACL::isAllowed('user', Route::getControllerName(), Route::getActionName()) == false) { throw new AccessNotAllowedException('You are not allowed to access this page'); } }
<?php use Bootstrap\Facades\Route; Route::add('/acme/test', ['module' => 'acme', 'controller' => 'Acme', 'action' => 'test']);