[turba] shares problem with sql addressbook - turning off use_shares turns off browsing.

Liam Hoekenga liamr at deathstar.org
Tue Feb 19 19:53:06 UTC 2008


I'm using Horde 3.2RC2 and Turba 2.2RC3.  I've got shares turned off in 
horde/conf.php..

    $conf['share']['no_sharing'] = true;

and my users are presented with a "My Address Books" icon in the Turba 
menu.  So, I turn off 'use_shares' in the definition for my localsql 
"source".. which removes the "My Address Books" icon, but also removes 
my ability to browse my addressbook.  There's no "Browse" icon, and even 
though, I've chosen "browse.php" as the initial view, I'm dropped into 
the search screen.  If I go directly to turba/browse.php, I'm told..

    "There are no browseable address books."

I see this bit in lib/Turba.php, around line 582...

        if (!empty($_SESSION['turba']['has_share'])) {
            $menu->add(Horde::applicationUrl('addressbooks/index.php'), 
_("_My Address Books"), 'turba.png');
        }

It seems to me that this check needs to take 
$conf['share']['no_sharing'] into account.  It shouldn't matter whether 
a Turba source has sharing turned on or off, if sharing is turned off in 
Horde.

Liam



More information about the turba mailing list