Files
thetool/application/Radius/RadiusController.php
2025-01-14 08:52:50 +01:00

22 lines
580 B
PHP

<?php
class RadiusController extends mfBaseController {
private User $me;
protected function init(): void {
$this->needlogin=true;
$me = new User();
$me->loadMe();
$this->layout()->set("me", $me);
$this->me = $me;
if (!$this->me->is("Admin")) $this->redirect("Dashboard");
}
protected function indexAction() {
$this->layout()->set('additionalJS', ["plugins/chart.js/chart.4.4.6.js", "plugins/chart.js/chartjs-adapter-moment.min.js"]);
Helper::renderVue($this, $this->mod, "Radius", []);
}
}