From 4c2c6ef15a31009e3e35e0f524e4d27c1f16db42 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 16 Jul 2009 17:28:36 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ SoObjects/SOGo/SOGoObject.m | 13 ++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 252b946c3..46cf4c2dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-07-16 Francis Lachapelle + + * SoObjects/SOGo/SOGoObject.m ([SOGoObject -setOwner:]): update + ivar activeUserIsOwner when changing owner. + 2009-07-16 Cyril Robert * UI/PreferencesUI/UIxPreferences.m: Added categories, categoriesValue, diff --git a/SoObjects/SOGo/SOGoObject.m b/SoObjects/SOGo/SOGoObject.m index 27544ceb5..a5f5f6d5e 100644 --- a/SoObjects/SOGo/SOGoObject.m +++ b/SoObjects/SOGo/SOGoObject.m @@ -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; }