mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-12 11:55:09 +00:00
Monotone-Parent: df2b66af0afb7884e01b50efd6f7e99acf0743fa
Monotone-Revision: 1804bb2fc333899fed4fa062ac489b8006f6b8a4 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-19T21:07:54 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -230,9 +230,11 @@
|
||||
{
|
||||
iCalEvent *oldEvent;
|
||||
NSArray *attendees;
|
||||
SOGoUser *currentUser;
|
||||
|
||||
[[newEvent parent] setMethod: @""];
|
||||
if ([newEvent userIsOrganizer: [context activeUser]])
|
||||
currentUser = [context activeUser];
|
||||
if ([newEvent userIsOrganizer: currentUser])
|
||||
{
|
||||
oldEvent = [self component: NO secure: NO];
|
||||
if (oldEvent)
|
||||
@@ -249,7 +251,9 @@
|
||||
toAttendees: attendees];
|
||||
}
|
||||
|
||||
if (![[newEvent attendees] count])
|
||||
if (![[newEvent attendees] count]
|
||||
&& [[self ownerInContext: context]
|
||||
isEqualToString: [currentUser login]])
|
||||
[[newEvent uniqueChildWithTag: @"organizer"] setValue: 0
|
||||
to: @""];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user