the user is now able to delete an existing change request that he made

This commit is contained in:
SimonGschnell
2024-01-15 15:40:55 +01:00
parent e881abe904
commit 73792d1e78
3 changed files with 31 additions and 3 deletions
+11
View File
@@ -21,6 +21,7 @@ class Profil extends Auth_Controller
'getView' => ['student/anrechnung_beantragen:r', 'user:r'],
'insertProfilRequest' => ['student/anrechnung_beantragen:r', 'user:r'],
'updateProfilRequest' => ['student/anrechnung_beantragen:r', 'user:r'],
'deleteProfilRequest' => ['student/anrechnung_beantragen:r', 'user:r'],
]);
@@ -147,6 +148,16 @@ class Profil extends Auth_Controller
}
}
public function deleteProfilRequest(){
$json = json_decode($this->input->raw_input_stream);
$delete_res = $this->ProfilChangeModel->delete([$json]);
echo json_encode($delete_res);
}
private function viewMitarbeiterProfil($uid)