Check acl permissions dynamically in cakephp 4.x

I check permissions in AppController.php with this code:

$group = $this->Groups->get($group_id);
$checkACA1 = $this->Acl->check($group, 'AffiliateCertificates/add');
$this->set('checkACA1', $checkACA1);
$checkACA2 = $this->Acl->check($group, 'AffiliateCertificates/add', 'create');
$this->set('checkACA2', $checkACA2);
$checkACD1 = $this->Acl->check($group, 'AffiliateCertificates/delete');
$this->set('checkACD1', $checkACD1);
$checkACD2 = $this->Acl->check($group, 'AffiliateCertificates/delete', 'delete');
$this->set('checkACD2', $checkACD2);
$checkACE1 = $this->Acl->check($group, 'AffiliateCertificates/edit');
$this->set('checkACE1', $checkACE1);
$checkACE2 = $this->Acl->check($group, 'AffiliateCertificates/edit', 'update');
$this->set('checkACE2', $checkACE2);
$checkACI1 = $this->Acl->check($group, 'AffiliateCertificates/index');
$this->set('checkACI1', $checkACI1);
$checkACI2 = $this->Acl->check($group, 'AffiliateCertificates/index', 'create');
$this->set('checkACI2', $checkACI2);
$checkACI3 = $this->Acl->check($group, 'AffiliateCertificates/index', 'read');
$this->set('checkACI3', $checkACI3);
$checkACI4 = $this->Acl->check($group, 'AffiliateCertificates/index', 'update');
$this->set('checkACI4', $checkACI4);
$checkACI5 = $this->Acl->check($group, 'AffiliateCertificates/index', 'delete');
$this->set('checkACI5', $checkACI5);
$checkACV1 = $this->Acl->check($group, 'AffiliateCertificates/view');
$this->set('checkACV1', $checkACV1);
$checkACV2 = $this->Acl->check($group, 'AffiliateCertificates/view', 'create');
$this->set('checkACV2', $checkACV2);
$checkACV3 = $this->Acl->check($group, 'AffiliateCertificates/view', 'read');
$this->set('checkACV3', $checkACV3);
$checkACV4 = $this->Acl->check($group, 'AffiliateCertificates/view', 'update');
$this->set('checkACV4', $checkACV4);
$checkACV5 = $this->Acl->check($group, 'AffiliateCertificates/view', 'delete');
$this->set('checkACV5', $checkACV5);
$checkAA1 = $this->Acl->check($group, 'Affiliates/add');
$this->set('checkAA1', $checkAA1);
$checkAA2 = $this->Acl->check($group, 'Affiliates/add', 'create');
$this->set('checkAA2', $checkAA2);
$checkAD1 = $this->Acl->check($group, 'Affiliates/delete');
$this->set('checkAD1', $checkAD1);
$checkAD2 = $this->Acl->check($group, 'Affiliates/delete', 'delete');
$this->set('checkAD2', $checkAD2);
$checkAE1 = $this->Acl->check($group, 'Affiliates/edit');
$this->set('checkAE1', $checkAE1);
$checkAE2 = $this->Acl->check($group, 'Affiliates/edit', 'update');
$this->set('checkAE2', $checkAE2);
$checkAI1 = $this->Acl->check($group, 'Affiliates/index');
$this->set('checkAI1', $checkAI1);
$checkAI2 = $this->Acl->check($group, 'Affiliates/index', 'create');
$this->set('checkAI2', $checkAI2);
$checkAI3 = $this->Acl->check($group, 'Affiliates/index', 'read');
$this->set('checkAI3', $checkAI3);
$checkAI4 = $this->Acl->check($group, 'Affiliates/index', 'update');
$this->set('checkAI4', $checkAI4);
$checkAI5 = $this->Acl->check($group, 'Affiliates/index', 'delete');
$this->set('checkAI5', $checkAI5);
$checkAL1 = $this->Acl->check($group, 'Affiliates/listAffiliates');
$this->set('checkAL1', $checkAL1);
$checkAL2 = $this->Acl->check($group, 'Affiliates/listAffiliates', 'create');
$this->set('checkAL2', $checkAL2);
$checkAL3 = $this->Acl->check($group, 'Affiliates/listAffiliates', 'read');
$this->set('checkAL3', $checkAL3);
$checkAL4 = $this->Acl->check($group, 'Affiliates/listAffiliates', 'update');
$this->set('checkAL4', $checkAL4);
$checkAL5 = $this->Acl->check($group, 'Affiliates/listAffiliates', 'delete');
$this->set('checkAL5', $checkAL5);
$checkAQ1 = $this->Acl->check($group, 'Affiliates/query');
$this->set('checkAQ1', $checkAQ1);
$checkAQ2 = $this->Acl->check($group, 'Affiliates/query', 'create');
$this->set('checkAQ2', $checkAQ2);
$checkAQ3 = $this->Acl->check($group, 'Affiliates/query', 'read');
$this->set('checkAQ3', $checkAQ3);
$checkAQ4 = $this->Acl->check($group, 'Affiliates/query', 'update');
$this->set('checkAQ4', $checkAQ4);
$checkAQ5 = $this->Acl->check($group, 'Affiliates/query', 'delete');
$this->set('checkAQ5', $checkAQ5);
$checkAS1 = $this->Acl->check($group, 'Affiliates/search');
$this->set('checkAS1', $checkAS1);
$checkAS2 = $this->Acl->check($group, 'Affiliates/search', 'create');
$this->set('checkAS2', $checkAS2);
$checkAS3 = $this->Acl->check($group, 'Affiliates/search', 'read');
$this->set('checkAS3', $checkAS3);
$checkAS4 = $this->Acl->check($group, 'Affiliates/search', 'update');
$this->set('checkAS4', $checkAS4);
$checkAS5 = $this->Acl->check($group, 'Affiliates/search', 'delete');
$this->set('checkAS5', $checkAS5);
$checkAV1 = $this->Acl->check($group, 'Affiliates/view');
$this->set('checkAV1', $checkAV1);
$checkAV2 = $this->Acl->check($group, 'Affiliates/view', 'create');
$this->set('checkAV2', $checkAV2);
$checkAV3 = $this->Acl->check($group, 'Affiliates/view', 'read');
$this->set('checkAV3', $checkAV3);
$checkAV4 = $this->Acl->check($group, 'Affiliates/view', 'update');
$this->set('checkAV4', $checkAV4);
$checkAV5 = $this->Acl->check($group, 'Affiliates/view', 'delete');
$this->set('checkAV5', $checkAV5);
$checkBA1 = $this->Acl->check($group, 'Benefits/add');
$this->set('checkBA1', $checkBA1);
$checkBA2 = $this->Acl->check($group, 'Benefits/add', 'create');
$this->set('checkBA2', $checkBA2);
$checkBD1 = $this->Acl->check($group, 'Benefits/delete');
$this->set('checkBD1', $checkBD1);
$checkBD2 = $this->Acl->check($group, 'Benefits/delete', 'delete');
$this->set('checkBD2', $checkBD2);
$checkBE1 = $this->Acl->check($group, 'Benefits/edit');
$this->set('checkBE1', $checkBE1);
$checkBE2 = $this->Acl->check($group, 'Benefits/edit', 'update');
$this->set('checkBE2', $checkBE2);
$checkBI1 = $this->Acl->check($group, 'Benefits/index');
$this->set('checkBI1', $checkBI1);
$checkBI2 = $this->Acl->check($group, 'Benefits/index', 'create');
$this->set('checkBI2', $checkBI2);
$checkBI3 = $this->Acl->check($group, 'Benefits/index', 'read');
$this->set('checkBI3', $checkBI3);
$checkBI4 = $this->Acl->check($group, 'Benefits/index', 'update');
$this->set('checkBI4', $checkBI4);
$checkBI5 = $this->Acl->check($group, 'Benefits/index', 'delete');
$this->set('checkBI5', $checkBI5);
$checkBV1 = $this->Acl->check($group, 'Benefits/view');
$this->set('checkBV1', $checkBV1);
$checkBV2 = $this->Acl->check($group, 'Benefits/view', 'create');
$this->set('checkBV2', $checkBV2);
$checkBV3 = $this->Acl->check($group, 'Benefits/view', 'read');
$this->set('checkBV3', $checkBV3);
$checkBV4 = $this->Acl->check($group, 'Benefits/view', 'update');
$this->set('checkBV4', $checkBV4);
$checkBV5 = $this->Acl->check($group, 'Benefits/view', 'delete');
$this->set('checkBV5', $checkBV5);
$checkCoA1 = $this->Acl->check($group, 'Concepts/add');
$this->set('checkCoA1', $checkCoA1);
$checkCoA2 = $this->Acl->check($group, 'Concepts/add', 'create');
$this->set('checkCoA2', $checkCoA2);
$checkCoD1 = $this->Acl->check($group, 'Concepts/delete');
$this->set('checkCoD1', $checkCoD1);
$checkCoD2 = $this->Acl->check($group, 'Concepts/delete', 'delete');
$this->set('checkCoD2', $checkCoD2);
$checkCoE1 = $this->Acl->check($group, 'Concepts/edit');
$this->set('checkCoE1', $checkCoE1);
$checkCoE2 = $this->Acl->check($group, 'Concepts/edit', 'update');
$this->set('checkCoE2', $checkCoE2);
$checkCoI1 = $this->Acl->check($group, 'Concepts/index');
$this->set('checkCoI1', $checkCoI1);
$checkCoI2 = $this->Acl->check($group, 'Concepts/index', 'create');
$this->set('checkCoI2', $checkCoI2);
$checkCoI3 = $this->Acl->check($group, 'Concepts/index', 'read');
$this->set('checkCoI3', $checkCoI3);
$checkCoI4 = $this->Acl->check($group, 'Concepts/index', 'update');
$this->set('checkCoI4', $checkCoI4);
$checkCoI5 = $this->Acl->check($group, 'Concepts/index', 'delete');
$this->set('checkCoI5', $checkCoI5);
$checkCoV1 = $this->Acl->check($group, 'Concepts/view');
$this->set('checkCoV1', $checkCoV1);
$checkCoV2 = $this->Acl->check($group, 'Concepts/view', 'create');
$this->set('checkCoV2', $checkCoV2);
$checkCoV3 = $this->Acl->check($group, 'Concepts/view', 'read');
$this->set('checkCoV3', $checkCoV3);
$checkCoV4 = $this->Acl->check($group, 'Concepts/view', 'update');
$this->set('checkCoV4', $checkCoV4);
$checkCoV5 = $this->Acl->check($group, 'Concepts/view', 'delete');
$this->set('checkCoV5', $checkCoV5);
$checkCA1 = $this->Acl->check($group, 'Contributions/add');
$this->set('checkCA1', $checkCA1);
$checkCA2 = $this->Acl->check($group, 'Contributions/add', 'create');
$this->set('checkCA2', $checkCA2);
$checkCC1 = $this->Acl->check($group, 'Contributions/calculate');
$this->set('checkCC1', $checkCC1);
$checkCC2 = $this->Acl->check($group, 'Contributions/calculate', 'create');
$this->set('checkCC2', $checkCC2);
$checkCC3 = $this->Acl->check($group, 'Contributions/calculate', 'read');
$this->set('checkCC3', $checkCC3);
$checkCC4 = $this->Acl->check($group, 'Contributions/calculate', 'update');
$this->set('checkCC4', $checkCC4);
$checkCC5 = $this->Acl->check($group, 'Contributions/calculate', 'delete');
$this->set('checkCC5', $checkCC5);
$checkCD1 = $this->Acl->check($group, 'Contributions/delete');
$this->set('checkCD1', $checkCD1);
$checkCD2 = $this->Acl->check($group, 'Contributions/delete', 'delete');
$this->set('checkCD2', $checkCD2);
$checkCE1 = $this->Acl->check($group, 'Contributions/edit');
$this->set('checkCE1', $checkCE1);
$checkCE2 = $this->Acl->check($group, 'Contributions/edit', 'update');
$this->set('checkCE2', $checkCE2);
$checkCI1 = $this->Acl->check($group, 'Contributions/index');
$this->set('checkCI1', $checkCI1);
$checkCI2 = $this->Acl->check($group, 'Contributions/index', 'create');
$this->set('checkCI2', $checkCI2);
$checkCI3 = $this->Acl->check($group, 'Contributions/index', 'read');
$this->set('checkCI3', $checkCI3);
$checkCI4 = $this->Acl->check($group, 'Contributions/index', 'update');
$this->set('checkCI4', $checkCI4);
$checkCI5 = $this->Acl->check($group, 'Contributions/index', 'delete');
$this->set('checkCI5', $checkCI5);
$checkCIn1 = $this->Acl->check($group, 'Contributions/inherit');
$this->set('checkCIn1', $checkCIn1);
$checkCIn2 = $this->Acl->check($group, 'Contributions/inherit', 'create');
$this->set('checkCIn2', $checkCIn2);
$checkCQ1 = $this->Acl->check($group, 'Contributions/query');
$this->set('checkCQ1', $checkCQ1);
$checkCQ2 = $this->Acl->check($group, 'Contributions/query', 'create');
$this->set('checkCQ2', $checkCQ2);
$checkCQ3 = $this->Acl->check($group, 'Contributions/query', 'read');
$this->set('checkCQ3', $checkCQ3);
$checkCQ4 = $this->Acl->check($group, 'Contributions/query', 'update');
$this->set('checkCQ4', $checkCQ4);
$checkCQ5 = $this->Acl->check($group, 'Contributions/query', 'delete');
$this->set('checkCQ5', $checkCQ5);
$checkCV1 = $this->Acl->check($group, 'Contributions/view');
$this->set('checkCV1', $checkCV1);
$checkCV2 = $this->Acl->check($group, 'Contributions/view', 'create');
$this->set('checkCV2', $checkCV2);
$checkCV3 = $this->Acl->check($group, 'Contributions/view', 'read');
$this->set('checkCV3', $checkCV3);
$checkCV4 = $this->Acl->check($group, 'Contributions/view', 'update');
$this->set('checkCV4', $checkCV4);
$checkCV5 = $this->Acl->check($group, 'Contributions/view', 'delete');
$this->set('checkCV5', $checkCV5);
$checkEA1 = $this->Acl->check($group, 'Enterprises/add');
$this->set('checkEA1', $checkEA1);
$checkEA2 = $this->Acl->check($group, 'Enterprises/add', 'create');
$this->set('checkEA2', $checkEA2);
$checkED1 = $this->Acl->check($group, 'Enterprises/delete');
$this->set('checkED1', $checkED1);
$checkED2 = $this->Acl->check($group, 'Enterprises/delete', 'delete');
$this->set('checkED2', $checkED2);
$checkEE1 = $this->Acl->check($group, 'Enterprises/edit');
$this->set('checkEE1', $checkEE1);
$checkEE2 = $this->Acl->check($group, 'Enterprises/edit', 'update');
$this->set('checkEE2', $checkEE2);
$checkEI1 = $this->Acl->check($group, 'Enterprises/index');
$this->set('checkEI1', $checkEI1);
$checkEI2 = $this->Acl->check($group, 'Enterprises/index', 'create');
$this->set('checkEI2', $checkEI2);
$checkEI3 = $this->Acl->check($group, 'Enterprises/index', 'read');
$this->set('checkEI3', $checkEI3);
$checkEI4 = $this->Acl->check($group, 'Enterprises/index', 'update');
$this->set('checkEI4', $checkEI4);
$checkEI5 = $this->Acl->check($group, 'Enterprises/index', 'delete');
$this->set('checkEI5', $checkEI5);
$checkEV1 = $this->Acl->check($group, 'Enterprises/view');
$this->set('checkEV1', $checkEV1);
$checkEV2 = $this->Acl->check($group, 'Enterprises/view', 'create');
$this->set('checkEV2', $checkEV2);
$checkEV3 = $this->Acl->check($group, 'Enterprises/view', 'read');
$this->set('checkEV3', $checkEV3);
$checkEV4 = $this->Acl->check($group, 'Enterprises/view', 'update');
$this->set('checkEV4', $checkEV4);
$checkEV5 = $this->Acl->check($group, 'Enterprises/view', 'delete');
$this->set('checkEV5', $checkEV5);
$checkEvA1 = $this->Acl->check($group, 'Events/add');
$this->set('checkEvA1', $checkEvA1);
$checkEvA2 = $this->Acl->check($group, 'Events/add', 'create');
$this->set('checkEvA2', $checkEvA2);
$checkEvD1 = $this->Acl->check($group, 'Events/delete');
$this->set('checkEvD1', $checkEvD1);
$checkEvD2 = $this->Acl->check($group, 'Events/delete', 'delete');
$this->set('checkEvD2', $checkEvD2);
$checkEvE1 = $this->Acl->check($group, 'Events/edit');
$this->set('checkEvE1', $checkEvE1);
$checkEvE2 = $this->Acl->check($group, 'Events/edit', 'update');
$this->set('checkEvE2', $checkEvE2);
$checkEvI1 = $this->Acl->check($group, 'Events/index');
$this->set('checkEvI1', $checkEvI1);
$checkEvI2 = $this->Acl->check($group, 'Events/index', 'create');
$this->set('checkEvI2', $checkEvI2);
$checkEvI3 = $this->Acl->check($group, 'Events/index', 'read');
$this->set('checkEvI3', $checkEvI3);
$checkEvI4 = $this->Acl->check($group, 'Events/index', 'update');
$this->set('checkEvI4', $checkEvI4);
$checkEvI5 = $this->Acl->check($group, 'Events/index', 'delete');
$this->set('checkEvI5', $checkEvI5);
$checkEvV1 = $this->Acl->check($group, 'Events/view');
$this->set('checkEvV1', $checkEvV1);
$checkEvV2 = $this->Acl->check($group, 'Events/view', 'create');
$this->set('checkEvV2', $checkEvV2);
$checkEvV3 = $this->Acl->check($group, 'Events/view', 'read');
$this->set('checkEvV3', $checkEvV3);
$checkEvV4 = $this->Acl->check($group, 'Events/view', 'update');
$this->set('checkEvV4', $checkEvV4);
$checkEvV5 = $this->Acl->check($group, 'Events/view', 'delete');
$this->set('checkEvV5', $checkEvV5);
$checkFA1 = $this->Acl->check($group, 'FamilyGroup/add');
$this->set('checkFA1', $checkFA1);
$checkFA2 = $this->Acl->check($group, 'FamilyGroup/add', 'create');
$this->set('checkFA2', $checkFA2);
$checkFAA1 = $this->Acl->check($group, 'FamilyGroup/addAffiliate');
$this->set('checkFAA1', $checkFAA1);
$checkFAA2 = $this->Acl->check($group, 'FamilyGroup/addAffiliate', 'create');
$this->set('checkFAA2', $checkFAA2);
$checkFD1 = $this->Acl->check($group, 'FamilyGroup/delete');
$this->set('checkFD1', $checkFD1);
$checkFD2 = $this->Acl->check($group, 'FamilyGroup/delete', 'delete');
$this->set('checkFD2', $checkFD2);
$checkFE1 = $this->Acl->check($group, 'FamilyGroup/edit');
$this->set('checkFE1', $checkFE1);
$checkFE2 = $this->Acl->check($group, 'FamilyGroup/edit', 'update');
$this->set('checkFE2', $checkFE2);
$checkFV1 = $this->Acl->check($group, 'FamilyGroup/view');
$this->set('checkFV1', $checkFV1);
$checkFV2 = $this->Acl->check($group, 'FamilyGroup/view', 'create');
$this->set('checkFV2', $checkFV2);
$checkFV3 = $this->Acl->check($group, 'FamilyGroup/view', 'read');
$this->set('checkFV3', $checkFV3);
$checkFV4 = $this->Acl->check($group, 'FamilyGroup/view', 'update');
$this->set('checkFV4', $checkFV4);
$checkFV5 = $this->Acl->check($group, 'FamilyGroup/view', 'delete');
$this->set('checkFV5', $checkFV5);
$checkGA1 = $this->Acl->check($group, 'Groups/add');
$this->set('checkGA1', $checkGA1);
$checkGA2 = $this->Acl->check($group, 'Groups/add', 'create');
$this->set('checkGA2', $checkGA2);
$checkGD1 = $this->Acl->check($group, 'Groups/delete');
$this->set('checkGD1', $checkGD1);
$checkGD2 = $this->Acl->check($group, 'Groups/delete', 'delete');
$this->set('checkGD2', $checkGD2);
$checkGE1 = $this->Acl->check($group, 'Groups/edit');
$this->set('checkGE1', $checkGE1);
$checkGE2 = $this->Acl->check($group, 'Groups/edit', 'update');
$this->set('checkGE2', $checkGE2);
$checkGI1 = $this->Acl->check($group, 'Groups/index');
$this->set('checkGI1', $checkGI1);
$checkGI2 = $this->Acl->check($group, 'Groups/index', 'create');
$this->set('checkGI2', $checkGI2);
$checkGI3 = $this->Acl->check($group, 'Groups/index', 'read');
$this->set('checkGI3', $checkGI3);
$checkGI4 = $this->Acl->check($group, 'Groups/index', 'update');
$this->set('checkGI4', $checkGI4);
$checkGI5 = $this->Acl->check($group, 'Groups/index', 'delete');
$this->set('checkGI5', $checkGI5);
$checkGV1 = $this->Acl->check($group, 'Groups/view');
$this->set('checkGV1', $checkGV1);
$checkGV2 = $this->Acl->check($group, 'Groups/view', 'create');
$this->set('checkGV2', $checkGV2);
$checkGV3 = $this->Acl->check($group, 'Groups/view', 'read');
$this->set('checkGV3', $checkGV3);
$checkGV4 = $this->Acl->check($group, 'Groups/view', 'update');
$this->set('checkGV4', $checkGV4);
$checkGV5 = $this->Acl->check($group, 'Groups/view', 'delete');
$this->set('checkGV5', $checkGV5);
$checkH = $this->Acl->check($group, 'Home/index');
$this->set('checkH', $checkH);
$checkIRA1 = $this->Acl->check($group, 'InspectionRecords/add');
$this->set('checkIRA1', $checkIRA1);
$checkIRA2 = $this->Acl->check($group, 'InspectionRecords/add', 'create');
$this->set('checkIRA2', $checkIRA2);
$checkIRD1 = $this->Acl->check($group, 'InspectionRecords/delete');
$this->set('checkIRD1', $checkIRD1);
$checkIRD2 = $this->Acl->check($group, 'InspectionRecords/delete', 'delete');
$this->set('checkIRD2', $checkIRD2);
$checkIRE1 = $this->Acl->check($group, 'InspectionRecords/edit');
$this->set('checkIRE1', $checkIRE1);
$checkIRE2 = $this->Acl->check($group, 'InspectionRecords/edit', 'update');
$this->set('checkIRE2', $checkIRE2);
$checkIRI1 = $this->Acl->check($group, 'InspectionRecords/index');
$this->set('checkIRI1', $checkIRI1);
$checkIRI2 = $this->Acl->check($group, 'InspectionRecords/index', 'create');
$this->set('checkIRI2', $checkIRI2);
$checkIRI3 = $this->Acl->check($group, 'InspectionRecords/index', 'read');
$this->set('checkIRI3', $checkIRI3);
$checkIRI4 = $this->Acl->check($group, 'InspectionRecords/index', 'update');
$this->set('checkIRI4', $checkIRI4);
$checkIRI5 = $this->Acl->check($group, 'InspectionRecords/index', 'delete');
$this->set('checkIRI5', $checkIRI5);
$checkIRV1 = $this->Acl->check($group, 'InspectionRecords/view');
$this->set('checkIRV1', $checkIRV1);
$checkIRV2 = $this->Acl->check($group, 'InspectionRecords/view', 'create');
$this->set('checkIRV2', $checkIRV2);
$checkIRV3 = $this->Acl->check($group, 'InspectionRecords/view', 'read');
$this->set('checkIRV3', $checkIRV3);
$checkIRV4 = $this->Acl->check($group, 'InspectionRecords/view', 'update');
$this->set('checkIRV4', $checkIRV4);
$checkIRV5 = $this->Acl->check($group, 'InspectionRecords/view', 'delete');
$this->set('checkIRV5', $checkIRV5);
$checkIREA1 = $this->Acl->check($group, 'InspectionRecordsEmployees/add');
$this->set('checkIREA1', $checkIREA1);
$checkIREA2 = $this->Acl->check($group, 'InspectionRecordsEmployees/add', 'create');
$this->set('checkIREA2', $checkIREA2);
$checkIRED1 = $this->Acl->check($group, 'InspectionRecordsEmployees/delete');
$this->set('checkIRED1', $checkIRED1);
$checkIRED2 = $this->Acl->check($group, 'InspectionRecordsEmployees/delete', 'delete');
$this->set('checkIRED2', $checkIRED2);
$checkIREE1 = $this->Acl->check($group, 'InspectionRecordsEmployees/edit');
$this->set('checkIREE1', $checkIREE1);
$checkIREE2 = $this->Acl->check($group, 'InspectionRecordsEmployees/edit', 'update');
$this->set('checkIREE2', $checkIREE2);
$checkIREI1 = $this->Acl->check($group, 'InspectionRecordsEmployees/index');
$this->set('checkIREI1', $checkIREI1);
$checkIREI2 = $this->Acl->check($group, 'InspectionRecordsEmployees/index', 'create');
$this->set('checkIREI2', $checkIREI2);
$checkIREI3 = $this->Acl->check($group, 'InspectionRecordsEmployees/index', 'read');
$this->set('checkIREI3', $checkIREI3);
$checkIREI4 = $this->Acl->check($group, 'InspectionRecordsEmployees/index', 'update');
$this->set('checkIREI4', $checkIREI4);
$checkIREI5 = $this->Acl->check($group, 'InspectionRecordsEmployees/index', 'delete');
$this->set('checkIREI5', $checkIREI5);
$checkIREV1 = $this->Acl->check($group, 'InspectionRecordsEmployees/view');
$this->set('checkIREV1', $checkIREV1);
$checkIREV2 = $this->Acl->check($group, 'InspectionRecordsEmployees/view', 'create');
$this->set('checkIREV2', $checkIREV2);
$checkIREV3 = $this->Acl->check($group, 'InspectionRecordsEmployees/view', 'read');
$this->set('checkIREV3', $checkIREV3);
$checkIREV4 = $this->Acl->check($group, 'InspectionRecordsEmployees/view', 'update');
$this->set('checkIREV4', $checkIREV4);
$checkIREV5 = $this->Acl->check($group, 'InspectionRecordsEmployees/view', 'delete');
$this->set('checkIREV5', $checkIREV5);
$checkLA1 = $this->Acl->check($group, 'LaborClaim/add');
$this->set('checkLA1', $checkLA1);
$checkLA2 = $this->Acl->check($group, 'LaborClaim/add', 'create');
$this->set('checkLA2', $checkLA2);
$checkLD1 = $this->Acl->check($group, 'LaborClaim/delete');
$this->set('checkLD1', $checkLD1);
$checkLD2 = $this->Acl->check($group, 'LaborClaim/delete', 'delete');
$this->set('checkLD2', $checkLD2);
$checkLE1 = $this->Acl->check($group, 'LaborClaim/edit');
$this->set('checkLE1', $checkLE1);
$checkLE2 = $this->Acl->check($group, 'LaborClaim/edit', 'update');
$this->set('checkLE2', $checkLE2);
$checkLI1 = $this->Acl->check($group, 'LaborClaim/index');
$this->set('checkLI1', $checkLI1);
$checkLI2 = $this->Acl->check($group, 'LaborClaim/index', 'create');
$this->set('checkLI2', $checkLI2);
$checkLI3 = $this->Acl->check($group, 'LaborClaim/index', 'read');
$this->set('checkLI3', $checkLI3);
$checkLI4 = $this->Acl->check($group, 'LaborClaim/index', 'update');
$this->set('checkLI4', $checkLI4);
$checkLI5 = $this->Acl->check($group, 'LaborClaim/index', 'delete');
$this->set('checkLI5', $checkLI5);
$checkLV1 = $this->Acl->check($group, 'LaborClaim/view');
$this->set('checkLV1', $checkLV1);
$checkLV2 = $this->Acl->check($group, 'LaborClaim/view', 'create');
$this->set('checkLV2', $checkLV2);
$checkLV3 = $this->Acl->check($group, 'LaborClaim/view', 'read');
$this->set('checkLV3', $checkLV3);
$checkLV4 = $this->Acl->check($group, 'LaborClaim/view', 'update');
$this->set('checkLV4', $checkLV4);
$checkLV5 = $this->Acl->check($group, 'LaborClaim/view', 'delete');
$this->set('checkLV5', $checkLV5);
$checkMA1 = $this->Acl->check($group, 'MyPermissions/add');
$this->set('checkMA1', $checkMA1);
$checkMA2 = $this->Acl->check($group, 'MyPermissions/add', 'create');
$this->set('checkMA2', $checkMA2);
$checkMD1 = $this->Acl->check($group, 'MyPermissions/delete');
$this->set('checkMD1', $checkMD1);
$checkMD2 = $this->Acl->check($group, 'MyPermissions/delete', 'delete');
$this->set('checkMD2', $checkMD2);
$checkME1 = $this->Acl->check($group, 'MyPermissions/edit');
$this->set('checkME1', $checkME1);
$checkME2 = $this->Acl->check($group, 'MyPermissions/edit', 'update');
$this->set('checkME2', $checkME2);
$checkMI1 = $this->Acl->check($group, 'MyPermissions/index');
$this->set('checkMI1', $checkMI1);
$checkMI2 = $this->Acl->check($group, 'MyPermissions/index', 'create');
$this->set('checkMI2', $checkMI2);
$checkMI3 = $this->Acl->check($group, 'MyPermissions/index', 'read');
$this->set('checkMI3', $checkMI3);
$checkMI4 = $this->Acl->check($group, 'MyPermissions/index', 'update');
$this->set('checkMI4', $checkMI4);
$checkMI5 = $this->Acl->check($group, 'MyPermissions/index', 'delete');
$this->set('checkMI5', $checkMI5);
$checkMV1 = $this->Acl->check($group, 'MyPermissions/view');
$this->set('checkMV1', $checkMV1);
$checkMV2 = $this->Acl->check($group, 'MyPermissions/view', 'create');
$this->set('checkMV2', $checkMV2);
$checkMV3 = $this->Acl->check($group, 'MyPermissions/view', 'read');
$this->set('checkMV3', $checkMV3);
$checkMV4 = $this->Acl->check($group, 'MyPermissions/view', 'update');
$this->set('checkMV4', $checkMV4);
$checkMV5 = $this->Acl->check($group, 'MyPermissions/view', 'delete');
$this->set('checkMV5', $checkMV5);
$checkOA1 = $this->Acl->check($group, 'Observations/add');
$this->set('checkOA1', $checkOA1);
$checkOA2 = $this->Acl->check($group, 'Observations/add', 'create');
$this->set('checkOA2', $checkOA2);
$checkOD1 = $this->Acl->check($group, 'Observations/delete');
$this->set('checkOD1', $checkOD1);
$checkOD2 = $this->Acl->check($group, 'Observations/delete', 'delete');
$this->set('checkOD2', $checkOD2);
$checkOI1 = $this->Acl->check($group, 'Observations/index');
$this->set('checkOI1', $checkOI1);
$checkOI2 = $this->Acl->check($group, 'Observations/index', 'create');
$this->set('checkOI2', $checkOI2);
$checkOI3 = $this->Acl->check($group, 'Observations/index', 'read');
$this->set('checkOI3', $checkOI3);
$checkOI4 = $this->Acl->check($group, 'Observations/index', 'update');
$this->set('checkOI4', $checkOI4);
$checkOI5 = $this->Acl->check($group, 'Observations/index', 'delete');
$this->set('checkOI5', $checkOI5);
$checkOV1 = $this->Acl->check($group, 'Observations/view');
$this->set('checkOV1', $checkOV1);
$checkOV2 = $this->Acl->check($group, 'Observations/view', 'create');
$this->set('checkOV2', $checkOV2);
$checkOV3 = $this->Acl->check($group, 'Observations/view', 'read');
$this->set('checkOV3', $checkOV3);
$checkOV4 = $this->Acl->check($group, 'Observations/view', 'update');
$this->set('checkOV4', $checkOV4);
$checkOV5 = $this->Acl->check($group, 'Observations/view', 'delete');
$this->set('checkOV5', $checkOV5);
$checkRA1 = $this->Acl->check($group, 'RegBenefits/add');
$this->set('checkRA1', $checkRA1);
$checkRA2 = $this->Acl->check($group, 'RegBenefits/add', 'create');
$this->set('checkRA2', $checkRA2);
$checkRD1 = $this->Acl->check($group, 'RegBenefits/delete');
$this->set('checkRD1', $checkRD1);
$checkRD2 = $this->Acl->check($group, 'RegBenefits/delete', 'delete');
$this->set('checkRD2', $checkRD2);
$checkRE1 = $this->Acl->check($group, 'RegBenefits/edit');
$this->set('checkRE1', $checkRE1);
$checkRE2 = $this->Acl->check($group, 'RegBenefits/edit', 'update');
$this->set('checkRE2', $checkRE2);
$checkRI1 = $this->Acl->check($group, 'RegBenefits/index');
$this->set('checkRI1', $checkRI1);
$checkRI2 = $this->Acl->check($group, 'RegBenefits/index', 'create');
$this->set('checkRI2', $checkRI2);
$checkRI3 = $this->Acl->check($group, 'RegBenefits/index', 'read');
$this->set('checkRI3', $checkRI3);
$checkRI4 = $this->Acl->check($group, 'RegBenefits/index', 'update');
$this->set('checkRI4', $checkRI4);
$checkRI5 = $this->Acl->check($group, 'RegBenefits/index', 'delete');
$this->set('checkRI5', $checkRI5);
$checkRV1 = $this->Acl->check($group, 'RegBenefits/view');
$this->set('checkRV1', $checkRV1);
$checkRV2 = $this->Acl->check($group, 'RegBenefits/view', 'create');
$this->set('checkRV2', $checkRV2);
$checkRV3 = $this->Acl->check($group, 'RegBenefits/view', 'read');
$this->set('checkRV3', $checkRV3);
$checkRV4 = $this->Acl->check($group, 'RegBenefits/view', 'update');
$this->set('checkRV4', $checkRV4);
$checkRV5 = $this->Acl->check($group, 'RegBenefits/view', 'delete');
$this->set('checkRV5', $checkRV5);
$checkReA1 = $this->Acl->check($group, 'Relationships/add');
$this->set('checkReA1', $checkReA1);
$checkReA2 = $this->Acl->check($group, 'Relationships/add', 'create');
$this->set('checkReA2', $checkReA2);
$checkReD1 = $this->Acl->check($group, 'Relationships/delete');
$this->set('checkReD1', $checkReD1);
$checkReD2 = $this->Acl->check($group, 'Relationships/delete', 'delete');
$this->set('checkReD2', $checkReD2);
$checkReE1 = $this->Acl->check($group, 'Relationships/edit');
$this->set('checkReE1', $checkReE1);
$checkReE2 = $this->Acl->check($group, 'Relationships/edit', 'update');
$this->set('checkReE2', $checkReE2);
$checkReI1 = $this->Acl->check($group, 'Relationships/index');
$this->set('checkReI1', $checkReI1);
$checkReI2 = $this->Acl->check($group, 'Relationships/index', 'create');
$this->set('checkReI2', $checkReI2);
$checkReI3 = $this->Acl->check($group, 'Relationships/index', 'read');
$this->set('checkReI3', $checkReI3);
$checkReI4 = $this->Acl->check($group, 'Relationships/index', 'update');
$this->set('checkReI4', $checkReI4);
$checkReI5 = $this->Acl->check($group, 'Relationships/index', 'delete');
$this->set('checkReI5', $checkReI5);
$checkReV1 = $this->Acl->check($group, 'Relationships/view');
$this->set('checkReV1', $checkReV1);
$checkReV2 = $this->Acl->check($group, 'Relationships/view', 'create');
$this->set('checkReV2', $checkReV2);
$checkReV3 = $this->Acl->check($group, 'Relationships/view', 'read');
$this->set('checkReV3', $checkReV3);
$checkReV4 = $this->Acl->check($group, 'Relationships/view', 'update');
$this->set('checkReV4', $checkReV4);
$checkReV5 = $this->Acl->check($group, 'Relationships/view', 'delete');
$this->set('checkReV5', $checkReV5);
$checkUA1 = $this->Acl->check($group, 'Users/add');
$this->set('checkUA1', $checkUA1);
$checkUA2 = $this->Acl->check($group, 'Users/add', 'create');
$this->set('checkUA2', $checkUA2);
$checkUD1 = $this->Acl->check($group, 'Users/delete');
$this->set('checkUD1', $checkUD1);
$checkUD2 = $this->Acl->check($group, 'Users/delete', 'delete');
$this->set('checkUD2', $checkUD2);
$checkUC1 = $this->Acl->check($group, 'Users/changepassword');
$this->set('checkUC1', $checkUC1);
$checkUC2 = $this->Acl->check($group, 'Users/changepassword', 'update');
$this->set('checkUC2', $checkUC2);
$checkUE1 = $this->Acl->check($group, 'Users/edit');
$this->set('checkUE1', $checkUE1);
$checkUE2 = $this->Acl->check($group, 'Users/edit', 'update');
$this->set('checkUE2', $checkUE2);
$checkUI1 = $this->Acl->check($group, 'Users/index');
$this->set('checkUI1', $checkUI1);
$checkUI2 = $this->Acl->check($group, 'Users/index', 'create');
$this->set('checkUI2', $checkUI2);
$checkUI3 = $this->Acl->check($group, 'Users/index', 'read');
$this->set('checkUI3', $checkUI3);
$checkUI4 = $this->Acl->check($group, 'Users/index', 'update');
$this->set('checkUI4', $checkUI4);
$checkUI5 = $this->Acl->check($group, 'Users/index', 'delete');
$this->set('checkUI5', $checkUI5);
$checkUL1 = $this->Acl->check($group, 'Users/logout');
$this->set('checkUL1', $checkUL1);
$checkUL2 = $this->Acl->check($group, 'Users/logout', 'create');
$this->set('checkUL2', $checkUL2);
$checkUL3 = $this->Acl->check($group, 'Users/logout', 'read');
$this->set('checkUL3', $checkUL3);
$checkUL4 = $this->Acl->check($group, 'Users/logout', 'update');
$this->set('checkUL4', $checkUL4);
$checkUL5 = $this->Acl->check($group, 'Users/logout', 'delete');
$this->set('checkUL5', $checkUL5);
$checkUV1 = $this->Acl->check($group, 'Users/view');
$this->set('checkUV1', $checkUV1);
$checkUV2 = $this->Acl->check($group, 'Users/view', 'create');
$this->set('checkUV2', $checkUV2);
$checkUV3 = $this->Acl->check($group, 'Users/view', 'read');
$this->set('checkUV3', $checkUV3);
$checkUV4 = $this->Acl->check($group, 'Users/view', 'update');
$this->set('checkUV4', $checkUV4);
$checkUV5 = $this->Acl->check($group, 'Users/view', 'delete');
$this->set('checkUV5', $checkUV5);

As you can see is very long and if I add a controller and/or an action I have to add it manually in the code, is there a dynamic way to check permissions with acl?