aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-features
diff options
context:
space:
mode:
authorSankar P <psankar@novell.com>2005-08-06 17:54:05 +0800
committerSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2005-08-06 17:54:05 +0800
commit3eb87547c71421aa83ec57443d94c11dcd7f6c8f (patch)
treec690b9420bc316184170172918ba9cf9b01f971c /plugins/groupwise-features
parent9487a7f1e6915ccc66ab30e961378e2b697f575c (diff)
downloadgsoc2013-evolution-3eb87547c71421aa83ec57443d94c11dcd7f6c8f.tar
gsoc2013-evolution-3eb87547c71421aa83ec57443d94c11dcd7f6c8f.tar.gz
gsoc2013-evolution-3eb87547c71421aa83ec57443d94c11dcd7f6c8f.tar.bz2
gsoc2013-evolution-3eb87547c71421aa83ec57443d94c11dcd7f6c8f.tar.lz
gsoc2013-evolution-3eb87547c71421aa83ec57443d94c11dcd7f6c8f.tar.xz
gsoc2013-evolution-3eb87547c71421aa83ec57443d94c11dcd7f6c8f.tar.zst
gsoc2013-evolution-3eb87547c71421aa83ec57443d94c11dcd7f6c8f.zip
Disabling giving proxy rights to self. Fixes #312365
2005-08-06 Sankar P <psankar@novell.com> * proxy.c: (proxy_dialog_store_widgets_data) Disabling giving proxy rights to self. Fixes #312365 svn path=/trunk/; revision=30014
Diffstat (limited to 'plugins/groupwise-features')
-rw-r--r--plugins/groupwise-features/ChangeLog6
-rw-r--r--plugins/groupwise-features/proxy.c8
2 files changed, 12 insertions, 2 deletions
diff --git a/plugins/groupwise-features/ChangeLog b/plugins/groupwise-features/ChangeLog
index d633e1083e..2a964f52fe 100644
--- a/plugins/groupwise-features/ChangeLog
+++ b/plugins/groupwise-features/ChangeLog
@@ -1,3 +1,9 @@
+2005-08-06 Sankar P <psankar@novell.com>
+
+ * proxy.c: (proxy_dialog_store_widgets_data)
+ Disabling giving proxy rights to self.
+ Fixes #312365
+
2005-07-29 Vivek Jain <jvivek@novell.com>
* status-track.c: (track_status):
diff --git a/plugins/groupwise-features/proxy.c b/plugins/groupwise-features/proxy.c
index 9b32c2aa4b..28506d73a9 100644
--- a/plugins/groupwise-features/proxy.c
+++ b/plugins/groupwise-features/proxy.c
@@ -336,15 +336,19 @@ proxy_dialog_store_widgets_data (EAccount *account, gint32 dialog)
e_error_run (NULL, "org.gnome.evolution.proxy:no-user",NULL ,NULL);
return -1;
}
-
+
for (; tmp != NULL; tmp = g_list_next (tmp)) {
email = NULL;
email = (char *)e_destination_get_email (tmp->data);
if (g_strrstr (email, "@") == NULL ) {
- e_error_run (NULL, "org.gnome.evolution.proxy:invalid-user",email ,NULL);
+ e_error_run (NULL, "org.gnome.evolution.proxy:invalid-user", email, NULL);
return -1;
}
+ if (! g_ascii_strcasecmp(e_gw_connection_get_user_email (prd->cnc), email)) {
+ e_error_run (NULL, "org.gnome.evolution.proxy:invalid-user", email, NULL);
+ return -1;
+ }
/*check whether already exists*/
existing_list = g_object_get_data ( (GObject*)account, "proxy_list");