hasPermission('*') && $this->hasPermission('no-monitoring/contacts')) { throw new SecurityException($this->translate('No permission for %s'), 'monitoring/contacts'); } $this->setTitle($this->translate('User Group')); $name = $this->params->shiftRequired('name'); $query = Usergroup::on($this->getDb()); $query->getSelectBase() ->where(['usergroup.name = ?' => $name]); $this->applyMonitoringRestriction($query); $usergroup = $query->first(); if ($usergroup === null) { throw new NotFoundError($this->translate('User group not found')); } $this->usergroup = $usergroup; } public function indexAction() { $this->addControl(new UsergroupList([$this->usergroup])); $this->addContent(new UserList($this->usergroup->user)); $this->setAutorefreshInterval(10); } }