This repository has been archived on 2026-11-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
thetool/application/Contractconfig/ContractconfigController.php
T

23 lines
452 B
PHP

<?php
class ContractconfigController extends mfBaseController {
protected function init() {
$this->needlogin=true;
$me = new User();
$me->loadMe();
$this->me = $me;
$this->layout()->set("me",$me);
if(!$me->is(["Admin"])) {
$this->redirect("Dashboard");
}
}
protected function indexAction() {
$groups = ContractconfigGroupModel::getAll();
$this->layout()->set("groups", $groups);
}
}