mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 09:52:22 +00:00
correct student check
This commit is contained in:
@@ -254,7 +254,7 @@ class Status extends FHCAPI_Controller
|
||||
)
|
||||
return true; // Only test if new status is Student
|
||||
|
||||
$result = $this->prestudentstatuschecklib->checkIfExistingStudentRolle($prestudent_id);
|
||||
$result = $this->prestudentstatuschecklib->checkIfExistingStudent($prestudent_id);
|
||||
|
||||
return $this->getDataOrTerminateWithError($result);
|
||||
}],
|
||||
@@ -1059,7 +1059,7 @@ class Status extends FHCAPI_Controller
|
||||
if ($value != Prestudentstatus_model::STATUS_STUDENT)
|
||||
return true; // Only test if new status is Student
|
||||
|
||||
$result = $this->prestudentstatuschecklib->checkIfExistingStudentRolle($prestudent_id);
|
||||
$result = $this->prestudentstatuschecklib->checkIfExistingStudent($prestudent_id);
|
||||
|
||||
return $this->getDataOrTerminateWithError($result);
|
||||
}]
|
||||
@@ -1600,7 +1600,7 @@ class Status extends FHCAPI_Controller
|
||||
if ($value != Prestudentstatus_model::STATUS_STUDENT)
|
||||
return true;
|
||||
|
||||
$result = $this->prestudentstatuschecklib->checkIfExistingStudentRolle($prestudent_id);
|
||||
$result = $this->prestudentstatuschecklib->checkIfExistingStudent($prestudent_id);
|
||||
|
||||
return $this->getDataOrTerminateWithError($result);
|
||||
}]
|
||||
|
||||
Reference in New Issue
Block a user