Berechtigung in FAS einbauen

This commit is contained in:
Manfred Kindl
2019-10-29 14:53:40 +01:00
parent 25c2d57993
commit e9b20283b5
2 changed files with 34 additions and 2 deletions
+10 -1
View File
@@ -524,7 +524,16 @@ if(!$error)
$prestudent->studiengang_kz = $_POST['studiengang_kz'];
$prestudent->berufstaetigkeit_code = $_POST['berufstaetigkeit_code'];
$prestudent->ausbildungcode = $_POST['ausbildungcode'];
$prestudent->zgv_code = $_POST['zgv_code'];
// Die Bachelor-ZGV darf nur mit einem eigenen Recht geändert werden
if($rechte->isBerechtigt('student/editBakkZgv',$_POST['studiengang_kz'],'suid'))
{
$prestudent->zgv_code = $_POST['zgv_code'];
}
elseif ($prestudent->zgv_code != $_POST['zgv_code'])
{
$errormsg = 'Keine Berechtigung zum Ändern der ZGV';
$error = true;
}
$prestudent->zgvort = $_POST['zgvort'];
$prestudent->zgvdatum = $_POST['zgvdatum'];
$prestudent->zgvnation = $_POST['zgvnation'];