permissions rbac

remotes/origin/master
Jerome De Almeida 2016-04-20 14:26:50 +02:00
parent b3b0259955
commit 03d2cad0c0
4 changed files with 25 additions and 1 deletions

View File

@ -9,7 +9,9 @@
],
"require": {
"php": ">=5.5",
"monarc/core": "dev-master"
"zendframework/zendframework": "2.5.3",
"doctrine/doctrine-orm-module": "^0.10",
"doctrine/migrations": "^1.4"
},
"repositories":[
{

View File

@ -10,6 +10,7 @@ return array(
'DoctrineModule',
'DoctrineORMModule',
'MonarcCore',
'MonarcBO',
),
'module_listener_options' => array(
'module_paths' => array(

View File

@ -37,4 +37,20 @@ return array(
),
),
),
'roles' => array(
'superadmin'=> array(
'monarc_api_admin_users',
'monarc_api_admin_servers',
),
'dbadmin'=> array(
'monarc_api_admin_users',
'monarc_api_admin_servers',
),
'sysadmin'=> array(
'monarc_api_admin_servers',
),
'accadmin'=> array(
'monarc_api_admin_users',
),
)
);

View File

@ -10,6 +10,11 @@ if (php_sapi_name() === 'cli-server' && is_file(__DIR__ . parse_url($_SERVER['RE
return false;
}
/**
* Default Timezone
*/
date_default_timezone_set('Europe/Luxembourg');
// Setup autoloading
require 'init_autoloader.php';