mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 09:52:22 +00:00
Validierung Eintragung Note after ExamDate, Hinweis KommPruefung, Phrases
This commit is contained in:
@@ -39,6 +39,7 @@ class Pruefung extends FHCAPI_Controller
|
||||
'getLvsAndMas' => self::PERM_LOGGED,
|
||||
'getMitarbeiterLv' => self::PERM_LOGGED,
|
||||
'getNoten' => self::PERM_LOGGED,
|
||||
'checkZeugnisnoteLv' => self::PERM_LOGGED,
|
||||
'insertPruefung' => ['admin:rw', 'assistenz:rw'],
|
||||
'updatePruefung' =>['admin:rw', 'assistenz:rw'],
|
||||
'deletePruefung' =>['admin:rw', 'assistenz:rw'],
|
||||
@@ -431,5 +432,22 @@ class Pruefung extends FHCAPI_Controller
|
||||
return $this->terminateWithSuccess(getData($result) ?: []);
|
||||
}
|
||||
|
||||
public function checkZeugnisnoteLv()
|
||||
{
|
||||
$student_uid = $this->input->post('student_uid');
|
||||
$studiensemester_kurzbz = $this->input->post('studiensemester_kurzbz');
|
||||
$lehrveranstaltung_id = $this->input->post('lehrveranstaltung_id');
|
||||
|
||||
$this->load->model('education/Zeugnisnote_model', 'ZeugnisnoteModel');
|
||||
|
||||
$result = $this->ZeugnisnoteModel->loadWhere(array(
|
||||
'lehrveranstaltung_id' => $lehrveranstaltung_id,
|
||||
'student_uid' => $student_uid,
|
||||
'studiensemester_kurzbz' => $studiensemester_kurzbz)
|
||||
);
|
||||
|
||||
$data = $this->getDataOrTerminateWithError($result);
|
||||
return $this->terminateWithSuccess($data);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user