when user does not have permissions to accept/deny a profil update request it is notified via alert modal

This commit is contained in:
SimonGschnell
2024-02-07 14:21:25 +01:00
parent 286c7be83d
commit 9362aea0cf
5 changed files with 146 additions and 169 deletions
+2 -8
View File
@@ -46,15 +46,9 @@ class ProfilUpdate extends Auth_Controller
}
public function getProfilUpdates($status=null){
$this->load->library('PermissionLib');
$studentBerechtigung = $this->permissionlib->isBerechtigt('student/stammdaten','s');
$mitarbeiterBerechtigung = $this->permissionlib->isBerechtigt('mitarbeiter/stammdaten','s');
$options = ["mitarbeiterView"=>$mitarbeiterBerechtigung,"studentView"=>$studentBerechtigung];
if(isset($status)){
$options['status'] = $status;
}
$res = $this->ProfilChangeModel->getProfilUpdate($options);
$res = $this->ProfilChangeModel->getProfilUpdate(isset($status)?['status'=>$status]:null);
echo json_encode($res);
}