diff --git a/application/ConstructionConsentOwner/ConstructionConsentOwnerController.php b/application/ConstructionConsentOwner/ConstructionConsentOwnerController.php index a32e9c6bd..3a91b027c 100644 --- a/application/ConstructionConsentOwner/ConstructionConsentOwnerController.php +++ b/application/ConstructionConsentOwner/ConstructionConsentOwnerController.php @@ -141,9 +141,6 @@ class ConstructionConsentOwnerController extends mfBaseController } protected function apiAction() { - if(!$this->me->is(["Admin"])) { - $this->redirect("Dashboard"); - } $do = $this->request->do; $data = []; @@ -210,4 +207,4 @@ class ConstructionConsentOwnerController extends mfBaseController return ["message" => "Result saved successfully", "update" => ["id" => $owner->id, "result" => $owner->result, "result_text" => __($owner->result, "consent")]]; } -} \ No newline at end of file +}