From: Ben Klang Date: Wed, 24 Mar 2010 21:10:18 +0000 (-0400) Subject: Shout: Fix permissions array X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=67f85b2a481029bc4a2435c8e5f45d6877a59df2;p=horde.git Shout: Fix permissions array --- diff --git a/shout/lib/Application.php b/shout/lib/Application.php index 76948addb..dc7e5c1d2 100644 --- a/shout/lib/Application.php +++ b/shout/lib/Application.php @@ -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; } }