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(
'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;
}
}