Monotone-Parent: fdc69a8bf5b6b5a68b37d7ddf77d671fc0bcbe15

Monotone-Revision: ef460d9a1b70d8d0e6195ea18cc95d9a2b9abbbf

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-04-22T18:11:31
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-04-22 18:11:31 +00:00
parent edb8bfd35c
commit 4c02b92629
2 changed files with 10 additions and 1 deletions
+4
View File
@@ -1,5 +1,9 @@
2010-04-22 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoGCSFolder.m (-renameTo:): when the active
user is a super user, we modify the real owner's version of the
displayname.
* Tests/Integration/webdavlib.py
(_WD_XMLTreeElement.appendSubtree): added handling of unicode
subtrees
+6 -1
View File
@@ -535,11 +535,16 @@ static NSArray *childRecordFields = nil;
- (void) renameTo: (NSString *) newName
{
SOGoUser *activeUser;
#warning SOGoFolder should have the corresponding method
[displayName release];
displayName = nil;
if (activeUserIsOwner)
activeUser = [context activeUser];
if (activeUserIsOwner
|| ([activeUser respondsToSelector: @selector (isSuperUser)]
&& [activeUser isSuperUser]))
[self _ownerRenameTo: newName];
else
[self _subscriberRenameTo: newName];