mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-07 09:25:09 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user