This commit is contained in:
cgfhtw
2023-10-02 11:33:23 +02:00
parent 468d334530
commit 2a0a0a81f2
4 changed files with 17 additions and 18 deletions
@@ -14,6 +14,13 @@ class Studentenverwaltung extends FHC_Controller
*/
public function index()
{
$this->load->view('Studentenverwaltung');
$this->load->library('AuthLib');
$this->load->library('PermissionLib');
$this->load->view('Studentenverwaltung', [
'permissions' => [
'student/bpk' => $this->permissionlib->isBerechtigt('student/bpk')
]
]);
}
}
+1 -1
View File
@@ -22,7 +22,7 @@
?>
<div id="main">
<router-view active-addons="<?= defined('ACTIVE_ADDONS') ? ACTIVE_ADDONS : ''; ?>" cis-root="<?= CIS_ROOT; ?>"></router-view>
<router-view active-addons="<?= defined('ACTIVE_ADDONS') ? ACTIVE_ADDONS : ''; ?>" cis-root="<?= CIS_ROOT; ?>" :permissions="<?= htmlspecialchars(json_encode($permissions)); ?>"></router-view>
</div>
<?php $this->load->view('templates/FHC-Footer', $includesArray); ?>