projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acbe9b9
)
Operator: Make sure we can access the driver when getting perms
author
Ben Klang
<ben@alkaloid.net>
Tue, 26 Jan 2010 19:54:37 +0000
(14:54 -0500)
committer
Ben Klang
<ben@alkaloid.net>
Tue, 26 Jan 2010 19:54:37 +0000
(14:54 -0500)
operator/lib/Application.php
patch
|
blob
|
history
diff --git
a/operator/lib/Application.php
b/operator/lib/Application.php
index
58ba65a
..
86d512c
100644
(file)
--- a/
operator/lib/Application.php
+++ b/
operator/lib/Application.php
@@
-79,6
+79,10
@@
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;