added new features

This commit is contained in:
Luca Haid
2025-06-11 11:40:56 +02:00
parent 29b67ac8e5
commit a8e552416b
6 changed files with 129 additions and 1 deletions
@@ -1078,6 +1078,21 @@ class ConstructionConsentController extends mfBaseController {
}
protected function prioritizeAction() {
$consent_id = $this->request->consent_id;
$checked = $this->request->checked;
$consent = new ConstructionConsent($consent_id);
if(!$consent->id) {
$this->returnJson(["status" => "error"]);
}
$consent->update(["prioritize" => $checked]);
$consent->save();
$this->returnJson(["status" => "OK"]);
}
protected function importConstructionConsentOwnersAction() {
$projectId = $this->request->project_id;
$importData = json_decode(file_get_contents('php://input'), true);