Shout: Fix permissions array
authorBen Klang <ben@alkaloid.net>
Wed, 24 Mar 2010 21:10:18 +0000 (17:10 -0400)
committerBen Klang <ben@alkaloid.net>
Wed, 24 Mar 2010 21:11:01 +0000 (17:11 -0400)
shout/lib/Application.php

index 76948ad..dc7e5c1 100644 (file)
@@ -138,9 +138,9 @@ class Shout_Application extends Horde_Registry_Application
         self::$_perms['title']['shout:accounts'] = _("Accounts");
 
         // Run through every contact source.
-        foreach ($accounts as $account) {
-            self::$_perms['tree']['shout']['accounts'][$account] = false;
-            self::$_perms['title']['shout:accounts:' . $account] = $account;
+        foreach ($accounts as $code => $account) {
+            self::$_perms['tree']['shout']['accounts'][$code] = false;
+            self::$_perms['title']['shout:accounts:' . $code] = $account;
 
             foreach(
                 array(
@@ -149,8 +149,8 @@ class Shout_Application extends Horde_Registry_Application
                     'conferences' => 'Conference Rooms',
                 )
                 as $module => $modname) {
-                self::$_perms['tree']['shout']['accounts'][$account][$module] = false;
-                self::$_perms['title']["shout:accounts:$account:$module"] = $modname;
+                self::$_perms['tree']['shout']['accounts'][$code][$module] = false;
+                self::$_perms['title']["shout:accounts:$code:$module"] = $modname;
             }
         }