mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
the user is now able to delete an existing change request that he made
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user