mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 23:07:12 +00:00
Monotone-Parent: 773965cc12e1e34ce72a11b7b25f3ff6e0dc7887
Monotone-Revision: 18368f64b51826fda4f9240e4e2ee6e766ae16ed Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-03-25T20:34:56 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
faff3ed110
commit
823db80b8d
2 files changed
+26
-4
No files matched your search
@@ -528,12 +528,26 @@ static BOOL sendFolderAdvisories = NO;
|
||||
inContext: (WOContext *) localContext
|
||||
{
|
||||
NSString *newDisplayName;
|
||||
NSException *exception;
|
||||
NSArray *currentRoles;
|
||||
|
||||
newDisplayName = [setProps objectForKey: @"davDisplayName"];
|
||||
if ([newDisplayName length])
|
||||
[self renameTo: newDisplayName];
|
||||
currentRoles = [[localContext activeUser] rolesForObject: self
|
||||
inContext: localContext];
|
||||
if ([currentRoles containsObject: SoRole_Owner])
|
||||
{
|
||||
newDisplayName = [setProps objectForKey: @"davDisplayName"];
|
||||
if ([newDisplayName length])
|
||||
{
|
||||
[self renameTo: newDisplayName];
|
||||
exception = nil;
|
||||
}
|
||||
else
|
||||
exception = [NSException exceptionWithHTTPStatus: 404];
|
||||
}
|
||||
else
|
||||
exception = [NSException exceptionWithHTTPStatus: 403];
|
||||
|
||||
return nil;
|
||||
return exception;
|
||||
}
|
||||
|
||||
/* acls as a container */
|
||||
|
||||
Reference in new issue
Block a user