| Summary | Turba ignoring ['conf']['share']['auto_create'] and creating a default addressbook! |
| Queue | Turba |
| Queue Version | Git master |
| Type | Bug |
| State | Resolved |
| Priority | 2. Medium |
| Owners | mrubinsk (at) horde (dot) org |
| Requester | qoole.horde (at) lillimoth (dot) com |
| Created | 08/24/2011 (5191 days ago) |
| Due | |
| Updated | 09/02/2011 (5182 days ago) |
| Assigned | 08/26/2011 (5189 days ago) |
| Resolved | 09/02/2011 (5182 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
[mjr] Honor auto_create configuration setting (
Bug #10452,qoole.horde@lillimoth.com)
3 files changed, 7 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/fdbef1ca6a900352ea6cf1807ac09d3b85ce9ae7
Assigned to Michael Rubinsky
State ⇒ Assigned
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Turba ignoring ['conf']['share']['auto_create'] and creating a default addressbook!
Queue ⇒ Turba
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
My setup is as follows:
Every user has a private LDAP based Addressbook. I also use the
standard 'localsql' for shared Addressbooks.
What I noticed was that the localsql backend was auto-creating a
default addressbook even though ['conf']['share']['auto_create'] is
set to false. Which was getting in the way (visually) of the LDAP one.
After a bit of rummaging I tracked the offending code down to:
horde/turba/lib/Turba.php Line 500:
if ($GLOBALS['registry']->getAuth() && !$personal) {
// User's default share is missing.
Looking through other modules I have altered that line to be:
if (!empty($GLOBALS['conf']['share']['auto_create']) &&
($GLOBALS['registry']->getAuth() && !$personal)) {
// User's default share is missing.
I am not a familiar enough developer to create a patch I'm afraid.
I hope this makes sense and helps someone!
Thanks,
Alex