diff options
author | Chris Toshok <toshok@ximian.com> | 2001-08-16 09:34:46 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-08-16 09:34:46 +0800 |
commit | 47381f2ef39dbc5688d7b4a591b16567e8d19263 (patch) | |
tree | 6461df847c47434d7a76744fa97e44a7a90678a3 /addressbook | |
parent | 02d49661f322939923b052ab986cda7b0cf50e18 (diff) | |
download | gsoc2013-evolution-47381f2ef39dbc5688d7b4a591b16567e8d19263.tar gsoc2013-evolution-47381f2ef39dbc5688d7b4a591b16567e8d19263.tar.gz gsoc2013-evolution-47381f2ef39dbc5688d7b4a591b16567e8d19263.tar.bz2 gsoc2013-evolution-47381f2ef39dbc5688d7b4a591b16567e8d19263.tar.lz gsoc2013-evolution-47381f2ef39dbc5688d7b4a591b16567e8d19263.tar.xz gsoc2013-evolution-47381f2ef39dbc5688d7b4a591b16567e8d19263.tar.zst gsoc2013-evolution-47381f2ef39dbc5688d7b4a591b16567e8d19263.zip |
don't let people add subdirs in the ldap server storage - everything is
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.
svn path=/trunk/; revision=12077
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook-storage.c | 3 |
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; |