displaying and editing BPK field in FAS with permission student/bpk

This commit is contained in:
KarpAlex
2021-11-02 11:28:10 +01:00
parent 69613d35c7
commit a02e470970
5 changed files with 32 additions and 3 deletions
+6 -2
View File
@@ -31,7 +31,9 @@ require_once('../../include/variable.class.php');
require_once('../../include/functions.inc.php');
require_once('../../include/benutzerberechtigung.class.php');
$user=get_uid();
$user = get_uid();
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($user);
$variable = new variable();
if(!$variable->loadVariables($user))
@@ -72,7 +74,9 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
<label value="Zugangscode" control="student-detail-zugangscode"/>
<label id="label-student-detail-link_bewerbungstool" hidden="true" value=""></label>
<label class="text-link" href="#" id="label-student-detail-zugangscode" value="" onclick="window.open(document.getElementById('label-student-detail-link_bewerbungstool').value)"/>
<?php $hideBpk = $rechte->isBerechtigt('student/bpk') ? '':' hidden="true"'; ?>
<label value="BPK" control="student-detail-textbox-bpk"<?php echo $hideBpk; ?>/>
<hbox><textbox id="student-detail-textbox-bpk" disabled="true" maxlength="255"<?php echo $hideBpk; ?>/></hbox>
</row>
<row>
<label value="Anrede" control="student-detail-textbox-anrede"/>