From 03d2cad0c09a35b65e6a9af90194f5b3e4baccbf Mon Sep 17 00:00:00 2001 From: Jerome De Almeida Date: Wed, 20 Apr 2016 14:26:50 +0200 Subject: [PATCH] permissions rbac --- composer.json | 4 +++- config/application.config.php | 1 + config/autoload/global.php | 16 ++++++++++++++++ public/index.php | 5 +++++ 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 46df2c9..87dcc7a 100644 --- a/composer.json +++ b/composer.json @@ -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":[ { diff --git a/config/application.config.php b/config/application.config.php index 204b059..5ce66d7 100644 --- a/config/application.config.php +++ b/config/application.config.php @@ -10,6 +10,7 @@ return array( 'DoctrineModule', 'DoctrineORMModule', 'MonarcCore', + 'MonarcBO', ), 'module_listener_options' => array( 'module_paths' => array( diff --git a/config/autoload/global.php b/config/autoload/global.php index eed30ce..c852e63 100644 --- a/config/autoload/global.php +++ b/config/autoload/global.php @@ -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', + ), + ) ); diff --git a/public/index.php b/public/index.php index 4f62596..56c4e96 100644 --- a/public/index.php +++ b/public/index.php @@ -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';