'index', ]; private static $allowed_actions = [ 'index', ]; public function index() { echo ControllerWithPermissions::OK_MSG; } public function canInit() { return Permission::check('DEV_ADMIN_TEST_PERMISSION'); } public function providePermissions() { return [ 'DEV_ADMIN_TEST_PERMISSION' => 'Dev admin test permission', ]; } }