Monotone-Parent: dd0f98cf89d78f378ec83484a40047514086bc36

Monotone-Revision: 846898c32d1bedf090b028559140bf62812511c5

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-06-13T20:08:45
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2008-06-13 20:08:45 +00:00
parent b134f4544d
commit e87a114405
3 changed files with 13 additions and 1 deletions
+4
View File
@@ -1,5 +1,9 @@
2008-06-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoObject.m ([SOGoObject
-ownerInContext:localContext]): set a new ivar: activeUserIsOwner
to reduce method calls.
* Main/SOGo.m ([SOGo -dispatchRequest:_request]): we now report
the time taken by the request, if the "SOGoDebugRequests" user
default is set.
+1
View File
@@ -68,6 +68,7 @@
NSString *owner;
SOGoWebDAVAclManager *webdavAclManager;
id container;
BOOL activeUserIsOwner;
}
+ (NSString *) globallyUniqueObjectId;
+8 -1
View File
@@ -200,6 +200,7 @@ static NSDictionary *reportMap = nil;
container = nil;
owner = nil;
webdavAclManager = [[self class] webdavAclManager];
activeUserIsOwner = NO;
}
return self;
@@ -255,8 +256,14 @@ static NSDictionary *reportMap = nil;
- (NSString *) ownerInContext: (id) localContext
{
NSString *uid;
if (!owner)
owner = [container ownerInContext: context];
{
owner = [container ownerInContext: context];
uid = [[localContext activeUser] login];
activeUserIsOwner = [owner isEqualToString: uid];
}
return owner;
}