Skip to content
Snippets Groups Projects
Commit ad805ab9 authored by Anton Bagliy's avatar Anton Bagliy
Browse files

v.2.8.10

parents 458649f4 30959ee8
Branches
No related merge requests found
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
"StudentsCreation": false, "StudentsCreation": false,
"StudentsTransfer": false, "StudentsTransfer": false,
"TeachersCreation": false, "TeachersCreation": false,
"DisciplineCreation": false "DisciplineCreation": false,
"FinalFormExport": true
}, },
"HTTPS": false "HTTPS": false
} }
...@@ -99,7 +99,7 @@ class Controller_Api_V0_FinalReport extends Controller_Handler_Api ...@@ -99,7 +99,7 @@ class Controller_Api_V0_FinalReport extends Controller_Handler_Api
]; ];
} }
if (!isset($emulate) and isset($groupnum)) { if ($emulate === "false" and isset($groupnum)) {
//$groupID = Model_Group::find($gradenum, $groupnum, $study_form, $faculty); //$groupID = Model_Group::find($gradenum, $groupnum, $study_form, $faculty);
//TODO: поменять логи, не записывать id дисциплины //TODO: поменять логи, не записывать id дисциплины
if (isset($disciplineID)) { if (isset($disciplineID)) {
...@@ -111,8 +111,13 @@ class Controller_Api_V0_FinalReport extends Controller_Handler_Api ...@@ -111,8 +111,13 @@ class Controller_Api_V0_FinalReport extends Controller_Handler_Api
// TODO: удалить лишние учебные планы от академиков правильным способом! // TODO: удалить лишние учебные планы от академиков правильным способом!
array_splice($response, 1); array_splice($response, 1);
$exportAllowed = Model_System::loadConfig()->Functional->FinalFormExport;
if ($exportAllowed || $emulate === "true") {
return $response;
} else {
$this->badRequestError("Выгрузка ведомостей заблокирована");
}
return $response;
} catch (Exception $e) { } catch (Exception $e) {
$this->badRequestError($e->getMessage()); $this->badRequestError($e->getMessage());
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment