aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-meeting-list-view.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-01-23 19:41:55 +0800
committerMilan Crha <mcrha@src.gnome.org>2009-01-23 19:41:55 +0800
commita8abd0060bdec73f774c665dd0488623dd4932ba (patch)
tree52aeed8ba8a6e82af45ca3762e194bd868e312f3 /calendar/gui/e-meeting-list-view.c
parent9e22e250e3bee2fe7160380582eed1102b7ba922 (diff)
downloadgsoc2013-evolution-a8abd0060bdec73f774c665dd0488623dd4932ba.tar
gsoc2013-evolution-a8abd0060bdec73f774c665dd0488623dd4932ba.tar.gz
gsoc2013-evolution-a8abd0060bdec73f774c665dd0488623dd4932ba.tar.bz2
gsoc2013-evolution-a8abd0060bdec73f774c665dd0488623dd4932ba.tar.lz
gsoc2013-evolution-a8abd0060bdec73f774c665dd0488623dd4932ba.tar.xz
gsoc2013-evolution-a8abd0060bdec73f774c665dd0488623dd4932ba.tar.zst
gsoc2013-evolution-a8abd0060bdec73f774c665dd0488623dd4932ba.zip
** Fix for bug #442869
2009-01-23 Milan Crha <mcrha@redhat.com> ** Fix for bug #442869 * gui/dialogs/task-page.c: (attendee_added_cb): * gui/dialogs/event-page.c: (attendee_added_cb): Do not work with NULL delegator and do not set 'delfrom' with two MAILTO. * gui/e-meeting-list-view.c: (name_selector_dialog_close_cb): Delete attendee only if we have enough rights for it. svn path=/trunk/; revision=37123
Diffstat (limited to 'calendar/gui/e-meeting-list-view.c')
-rw-r--r--calendar/gui/e-meeting-list-view.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/calendar/gui/e-meeting-list-view.c b/calendar/gui/e-meeting-list-view.c
index 95bdcdff19..9859c65df9 100644
--- a/calendar/gui/e-meeting-list-view.c
+++ b/calendar/gui/e-meeting-list-view.c
@@ -898,8 +898,12 @@ name_selector_dialog_close_cb (ENameSelectorDialog *dialog, gint response, gpoin
ma = e_meeting_store_find_attendee (store, email, &i);
- if (ma)
- e_meeting_store_remove_attendee (store, ma);
+ if (ma) {
+ if (e_meeting_attendee_get_edit_level (ma) != E_MEETING_ATTENDEE_EDIT_FULL)
+ g_warning ("Not enough rights to delete attendee: %s\n", e_meeting_attendee_get_address (ma));
+ else
+ e_meeting_store_remove_attendee (store, ma);
+ }
}
g_slist_free (la);