mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-09 05:25:26 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -68,6 +68,7 @@
|
||||
NSString *owner;
|
||||
SOGoWebDAVAclManager *webdavAclManager;
|
||||
id container;
|
||||
BOOL activeUserIsOwner;
|
||||
}
|
||||
|
||||
+ (NSString *) globallyUniqueObjectId;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user