aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c8
2 files changed, 12 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index dbbeb12047..03b5d398f9 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,9 @@
+2001-04-08 Chris Toshok <toshok@ximian.com>
+
+ * backend/pas/pas-backend-ldap.c (pas_backend_ldap_add_client):
+ make sure to notify new clients to the writable status of an
+ already open (and authenticated) book.
+
2001-04-04 Kjartan Maraas <kmaraas@gnome.org>
* contact-editor/e-contact-editor.[ch]: Fix headers.
diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c
index 2aa8a884d4..cc5a36f7db 100644
--- a/addressbook/backend/pas/pas-backend-ldap.c
+++ b/addressbook/backend/pas/pas-backend-ldap.c
@@ -82,6 +82,8 @@ struct _PASBackendLDAPPrivate {
gboolean evolutionPersonSupported;
gboolean evolutionPersonChecked;
+ gboolean writable;
+
/* whether or not there's a request in process on our LDAP* */
LDAPOp *current_op;
GList *pending_ops;
@@ -2037,8 +2039,8 @@ pas_backend_ldap_process_authenticate_user (PASBackend *backend,
pas_book_respond_authenticate_user (book,
ldap_error_to_response (ldap_error));
- if (ldap_error == LDAP_SUCCESS)
- pas_book_report_writable (book, TRUE);
+ bl->priv->writable = (ldap_error == LDAP_SUCCESS);
+ pas_book_report_writable (book, bl->priv->writable);
if (!bl->priv->evolutionPersonChecked)
check_schema_support (bl);
@@ -2238,6 +2240,8 @@ pas_backend_ldap_add_client (PASBackend *backend,
book, GNOME_Evolution_Addressbook_BookListener_Success);
}
+ pas_book_report_writable (book, bl->priv->writable);
+
return TRUE;
}