mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
hides the profil updates list if no profil update is present
This commit is contained in:
@@ -20,9 +20,9 @@ class Profil extends Auth_Controller
|
||||
'foto_sperre_function' => ['student/anrechnung_beantragen:r', 'user:r'],
|
||||
'getView' => ['student/anrechnung_beantragen:r', 'user:r'],
|
||||
'View' => ['student/anrechnung_beantragen:r', 'user:r'],
|
||||
'isMitarbeiter' => ['student/anrechnung_beantragen:r', 'user:r'],
|
||||
'isStudent' => ['student/anrechnung_beantragen:r', 'user:r'],
|
||||
|
||||
|
||||
|
||||
]);
|
||||
|
||||
|
||||
@@ -613,4 +613,24 @@ class Profil extends Auth_Controller
|
||||
return $zutrittskarte_ausgegebenam;
|
||||
}
|
||||
|
||||
//? foreward declaration of the function isStudent in Student_model.php
|
||||
public function isStudent($uid){
|
||||
$result = $this->StudentModel->isStudent($uid);
|
||||
if(!isSuccess($result)){
|
||||
show_error("error when calling Student_model function isStudent with uid ".$uid);
|
||||
}
|
||||
$result = getData($result);
|
||||
echo json_encode($result);
|
||||
}
|
||||
|
||||
//? foreward declaration of the function isMitarbeiter in Mitarbeiter_model.php
|
||||
public function isMitarbeiter($uid){
|
||||
$result = $this->MitarbeiterModel->isMitarbeiter($uid);
|
||||
if(!isSuccess($result)){
|
||||
show_error("error when calling Mitarbeiter_model function isMitarbeiter with uid ".$uid);
|
||||
}
|
||||
$result = getData($result);
|
||||
echo json_encode($result);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user