From c461a2c604bf180966bbb732b81f98057a27f248 Mon Sep 17 00:00:00 2001 From: Paulo Roberto Date: Tue, 4 Oct 2022 14:21:33 -0300 Subject: [PATCH] =?UTF-8?q?inserido=20restri=C3=A7=C3=A3o=20de=20cadastro?= =?UTF-8?q?=20de=20nova=20escola=20para=20apenas=20quem=20tem=20o=20usu?= =?UTF-8?q?=C3=A1rio=20de=20nome=20"admin"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/SchoolController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/SchoolController.php b/app/controllers/SchoolController.php index 2e4fc22e6..d4058a4ef 100755 --- a/app/controllers/SchoolController.php +++ b/app/controllers/SchoolController.php @@ -31,12 +31,12 @@ public function accessRules() { return array( array('allow', // allow authenticated user to perform 'create' and 'update' actions - 'actions' => array('edcenso_import', 'configacl', 'index', 'view', 'update', + 'actions' => array('edcenso_import', 'configacl', 'index', 'view', 'update', 'create', 'getcities', 'getdistricts', 'getorgans', 'updateufdependencies', 'updatecitydependencies', 'displayLogo'), 'users' => array('@'), ), array('allow', // allow admin user to perform 'admin' and 'delete' actions - 'actions' => array('admin', 'delete', 'create', 'reports', 'ReportsMonthlyTransaction', 'Record'), + 'actions' => array('admin', 'delete', 'reports', 'ReportsMonthlyTransaction', 'Record'), 'users' => array('admin'), ), array('deny', // deny all users