Revert "Operator: Make sure we can access the driver when getting perms"
authorBen Klang <ben@alkaloid.net>
Sun, 31 Jan 2010 21:01:10 +0000 (16:01 -0500)
committerBen Klang <ben@alkaloid.net>
Mon, 22 Feb 2010 01:14:53 +0000 (20:14 -0500)
This reverts commit 58aab31160712e15cac094f65dfc9d5b93f94f4a.

operator/lib/Application.php

index c965463..5d6dc79 100644 (file)
@@ -79,10 +79,6 @@ class Operator_Application extends Horde_Registry_Application
         self::$_perms['tree']['operator']['accountcodes'] = false;
         self::$_perms['title']['operator:accountcodes'] = _("Account Codes");
 
-        $GLOBALS['operator'] = $this;
-        if (empty($this->driver)) {
-            $this->_init();
-        }
         $accountcodes = Operator::getAccountCodes();
         foreach ($accountcodes as $accountcode) {
             self::$_perms['tree']['operator']['accountcodes'][$accountcode] = false;