mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 11:25:24 +00:00
See ChangeLog
Monotone-Parent: 1fc6240dbb88ca9e470be6d2679ee8e3e10e4f4f Monotone-Revision: b9443420fc607bc2c0d8c6a5cff48fda3c68f7e6 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2008-11-26T16:26:32 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1608,12 +1608,25 @@ RANGE(2);
|
||||
andClientObject: (SOGoContentObject
|
||||
<SOGoComponentOccurence> *) clientObject
|
||||
{
|
||||
NSString *toolbarFilename;
|
||||
iCalPersonPartStat participationStatus;
|
||||
NSString *toolbarFilename;
|
||||
BOOL isOrganizer;
|
||||
|
||||
// We determine if we're the organizer of the component beeing modified.
|
||||
// If we created an event on behalf of someone else -userIsOrganizer will
|
||||
// return us YES. This is OK because we're in the SENT-BY. But, Alice
|
||||
// should be able to accept/decline an invitation if she created the event
|
||||
// in Bob's calendar and added herself in the attendee list.
|
||||
isOrganizer = [component userIsOrganizer: ownerUser];
|
||||
|
||||
if (isOrganizer)
|
||||
{
|
||||
isOrganizer = ![ownerUser hasEmail: [[component organizer] sentBy]];
|
||||
}
|
||||
|
||||
if ([[component attendees] count]
|
||||
&& [component userIsParticipant: ownerUser]
|
||||
&& ![component userIsOrganizer: ownerUser])
|
||||
&& !isOrganizer)
|
||||
{
|
||||
participationStatus
|
||||
= [[component findParticipant: ownerUser] participationStatus];
|
||||
|
||||
Reference in New Issue
Block a user