mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-15 02:18:00 +00:00
fix(dav): return 405 when collection already exists
See https://datatracker.ietf.org/doc/html/rfc4918#section-9.3.1
This commit is contained in:
@@ -3076,15 +3076,15 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
||||
}
|
||||
|
||||
/* folder management */
|
||||
- (BOOL) create
|
||||
- (NSException *) create
|
||||
{
|
||||
BOOL rc;
|
||||
SOGoUserSettings *userSettings;
|
||||
NSMutableDictionary *calendarSettings;
|
||||
NSException *error;
|
||||
SOGoUser *ownerUser;
|
||||
|
||||
rc = [super create];
|
||||
if (rc)
|
||||
error = [super create];
|
||||
if (!error)
|
||||
{
|
||||
ownerUser = [SOGoUser userWithLogin: [self ownerInContext: context]];
|
||||
userSettings = [ownerUser userSettings];
|
||||
@@ -3097,7 +3097,7 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
||||
[userSettings synchronize];
|
||||
}
|
||||
|
||||
return rc;
|
||||
return error;
|
||||
}
|
||||
|
||||
- (void) removeFolderSettings: (NSMutableDictionary *) moduleSettings
|
||||
|
||||
Reference in New Issue
Block a user