See ChangeLog

Monotone-Parent: 01bf1d89cd94ea18b92612c7cdf2f88d80cd7d93
Monotone-Revision: 6aaedc14bdf14bbd2d4349b28598b7e1458a51e4

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-07-16T17:28:36
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Francis Lachapelle 2009-07-16 17:28:36 +00:00
parent aee8aa1f5e
commit 4c2c6ef15a
2 changed files with 11 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2009-07-16 Francis Lachapelle <flachapelle@inverse.ca>
* SoObjects/SOGo/SOGoObject.m ([SOGoObject -setOwner:]): update
ivar activeUserIsOwner when changing owner.
2009-07-16 Cyril Robert <crobert@inverse.ca>
* UI/PreferencesUI/UIxPreferences.m: Added categories, categoriesValue,

View File

@ -307,19 +307,18 @@ SEL SOGoSelectorForPropertySetter (NSString *property)
- (void) setOwner: (NSString *) newOwner
{
NSString *uid;
uid = [[context activeUser] login];
activeUserIsOwner = [newOwner isEqualToString: uid];
ASSIGN (owner, newOwner);
}
- (NSString *) ownerInContext: (id) localContext
{
NSString *uid;
if (!owner)
{
owner = [container ownerInContext: context];
uid = [[localContext activeUser] login];
activeUserIsOwner = [owner isEqualToString: uid];
}
[self setOwner: [container ownerInContext: localContext]];
return owner;
}