mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
when user does not have permissions to accept/deny a profil update request it is notified via alert modal
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user