aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/gui/component/addressbook-storage.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index fb8d3bf319..b2ceb53792 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,9 @@
+2001-08-15 Chris Toshok <toshok@ximian.com>
+
+ * gui/component/addressbook-storage.c (create_ldap_folder): don't
+ let people add subdirs in the ldap server storage - everything is
+ toplevel there.
+
2001-08-14 Chris Toshok <toshok@ximian.com>
* backend/pas/pas-backend-ldap.c
diff --git a/addressbook/gui/component/addressbook-storage.c b/addressbook/gui/component/addressbook-storage.c
index e4bb8e1441..9a8554115e 100644
--- a/addressbook/gui/component/addressbook-storage.c
+++ b/addressbook/gui/component/addressbook-storage.c
@@ -119,6 +119,9 @@ create_ldap_folder (EvolutionStorage *storage,
if (strcmp (type, "contacts"))
return GNOME_Evolution_Storage_UNSUPPORTED_TYPE;
+ if (strcmp (parent_physical_uri, "")) /* ldap servers can't have subfolders */
+ return GNOME_Evolution_Storage_INVALID_URI;
+
addressbook_create_new_source (path + 1, NULL);
return GNOME_Evolution_Storage_OK;