From: Michael J. Rubinsky Date: Sat, 13 Feb 2010 20:11:17 +0000 (-0500) Subject: [mjr] Allow creation of default, personal address book when other read-only sources... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=75fe348bdce3c0da96a158cae30860310eaaf606;p=horde.git [mjr] Allow creation of default, personal address book when other read-only sources are present. --- diff --git a/turba/docs/CHANGES b/turba/docs/CHANGES index 3828f02bb..642fce34c 100644 --- a/turba/docs/CHANGES +++ b/turba/docs/CHANGES @@ -10,6 +10,10 @@ v3.0-git v2.3.4-cvs ---------- +[mjr] Allow creation of default, personal address book when other read-only + sources are present. +[mjr] Log deletion in History when deleting all of a user's contacts + (Bug #8755). [jan] Only export non-empty fields if exporting manually. [jan] Add export to vCard 3.0. [jan] Only synchronize those fields that are supported by the client @@ -481,7 +485,7 @@ v2.0.4 v2.0.3 ------ -[jan] Add Turkish translation (Servet Güney , Ahmet Öztürk +[jan] Add Turkish translation (Servet Güney , Ahmet Öztürk ). @@ -618,7 +622,7 @@ v2.0-BETA [cjh] Turba's API has been consolidated somewhat, with a unified import method replacing add, addContact, and import_vcard. [jan] Add access keys. -[cjh] Add Kolab drivers (Stuart Bingë ). +[cjh] Add Kolab drivers (Stuart Bing� ). [cjh] The alphabetic pager now has an "All" option. @@ -722,7 +726,7 @@ v1.2 [cjh] Use the 'objectclass' entry from LDAP sources instead of defaulting to 'objectclass=*'. -[jan] Add Catalan translation (Angels Guimerà ). +[jan] Add Catalan translation (Angels Guimer� ). [jan] Add a preference for viewing names as Lastname, Firstname (Marc Jauvin ). [jan] Add Latvian translation (Kaspars Kapenieks ). @@ -829,7 +833,7 @@ v1.0-RC4 [jan] Add Brazilian Portuguese translation (Carlos Daniel Kibrit ). [jan] Add Greek translation (Stefanos I. Dimitriou ). -[jan] Add Swedish translation (Andreas Dahlén ). +[jan] Add Swedish translation (Andreas Dahl�n ). [jan] Add Korean translation (J.I Kim ). [cjh] Remove duplicate entries from multiple sources from turbaExpandAddresses() results. diff --git a/turba/lib/Turba.php b/turba/lib/Turba.php index 4f1fa94bd..6b769e236 100644 --- a/turba/lib/Turba.php +++ b/turba/lib/Turba.php @@ -374,6 +374,7 @@ class Turba { } $sortedShares = $defaults = $vbooks = array(); + $defaults = array(); foreach (array_keys($shares) as $name) { if (isset($sources[$name])) { continue; @@ -395,7 +396,7 @@ class Turba { // Default share? if (empty($defaults[$params['source']])) { $driver = Turba_Driver::singleton($params['source']); - if (!is_a($driver, 'PEAR_Error')) { + if (!is_a($driver, 'PEAR_Error') && $driver->hasPermission(PERMS_EDIT)) { $defaults[$params['source']] = $driver->checkDefaultShare( $shares[$name],