summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manager/application/controllers/MailController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/manager/application/controllers/MailController.php b/manager/application/controllers/MailController.php
index e1449fd..fb58194 100644
--- a/manager/application/controllers/MailController.php
+++ b/manager/application/controllers/MailController.php
@@ -17,6 +17,10 @@ class MailController extends Zend_Controller_Action
public function init()
{
/* Initialize action controller here */
+ $config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application.ini', APPLICATION_ENV);
+ $db2 = Zend_Db::factory($config->ca_mgr->db->auth2->pdo, $config->ca_mgr->db->auth2);
+ Zend_Registry::set('auth2_dbc', $db2);
+
$session = Zend_Registry::get('session');
$auth = $session->authdata['authed_permissions'];