From 4885fc1ac85434aaf82ac621a352e094fff6af87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Wed, 17 Jan 2018 10:48:46 +0100 Subject: [PATCH] =?UTF-8?q?Berechtigungsrolle=20f=C3=BCr=20Infocenter=20hi?= =?UTF-8?q?nzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/config/roles.php | 14 ++++++++++++-- application/controllers/DBTools.php | 9 ++++++--- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/application/config/roles.php b/application/config/roles.php index be898ea8f..d904fb96a 100644 --- a/application/config/roles.php +++ b/application/config/roles.php @@ -1,12 +1,12 @@ 'infocenter', + 'berechtigung' => array + ( + 'basis/adresse','basis/akte','basis/kontakt','basis/log','basis/nation','basis/notiz','basis/notizzuordnung', + 'basis/person','basis/prestudent','basis/prestudentstatus','basis/status','basis/zgv','basis/zgvmaster', + 'lehre/studienplan' + ) ) ); diff --git a/application/controllers/DBTools.php b/application/controllers/DBTools.php index 4b2fa86b5..0b4d77110 100644 --- a/application/controllers/DBTools.php +++ b/application/controllers/DBTools.php @@ -424,6 +424,8 @@ class DBTools extends FHC_Controller echo ' Roles!'; $this->config->load('roles'); foreach ($this->config->item('roles') as $role) + { + echo "\n\n".'Check role '.$role['rolle_kurzbz']; foreach ($role['berechtigung'] as $b) { $qry = "SELECT * FROM system.tbl_rolleberechtigung @@ -439,16 +441,17 @@ class DBTools extends FHC_Controller if($this->db->query($qry_insert)) { - echo '
'.$role['rolle_kurzbz'].' -> '.$b.' hinzugefügt'; + echo "\n".$role['rolle_kurzbz'].' -> '.$b.' hinzugefügt'; $neue=true; } else - echo '
Fehler: '.$role['rolle_kurzbz'].' -> '.$b.' hinzufügen nicht möglich'; + echo "\nFehler: ".$role['rolle_kurzbz'].' -> '.$b.' hinzufügen nicht möglich'; } else - echo "- $b -"; + echo "\n- $b -"; } } + } break; // **** Default **** default: echo ' what? roles or permisssions?';