Monotone-Parent: 4b3e779fea77f240e47bc50eb2b081a68379e9d7

Monotone-Revision: fa2db8adc03dd0adbd001a03cd74271b07fb41fe

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-10-16T22:30:47
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-10-16 22:30:47 +00:00
parent f829126230
commit 2380691c71
2 changed files with 14 additions and 3 deletions
+4
View File
@@ -1,5 +1,9 @@
2006-10-16 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Appointments/SOGoAppointmentFolder.m
([SOGoAppointmentFolder -deleteEntriesWithIds:ids]): don't delete
entries if their owner is not the current user.
* UI/Scheduler/UIxCalInlineAptView.m ([UIxCalInlineAptView
-displayClasses]): return the correct class for the current event
representation depending on its owner.
+10 -3
View File
@@ -730,9 +730,13 @@ static NSNumber *sharedYes = nil;
{
Class objectClass;
unsigned int count, max;
NSString *currentId;
NSString *currentId, *currentUser;
WOContext *context;
id deleteObject;
context = [[WOApplication application] context];
currentUser = [[context activeUser] login];
max = [ids count];
for (count = 0; count < max; count++)
{
@@ -741,8 +745,11 @@ static NSNumber *sharedYes = nil;
= [self objectClassForResourceNamed: currentId];
deleteObject = [objectClass objectWithName: currentId
inContainer: self];
[deleteObject delete];
[deleteObject primaryDelete];
if ([currentUser isEqualToString: [deleteObject ownerInContext: nil]])
{
[deleteObject delete];
[deleteObject primaryDelete];
}
}
}