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?';