diff --git a/SoObjects/Appointments/SOGoUserFolder+Appointments.h b/SoObjects/Appointments/SOGoUserFolder+Appointments.h index 89af6b687..9342de19a 100644 --- a/SoObjects/Appointments/SOGoUserFolder+Appointments.h +++ b/SoObjects/Appointments/SOGoUserFolder+Appointments.h @@ -32,6 +32,7 @@ - (NSArray *) davCalendarUserAddressSet; - (NSArray *) davCalendarHomeSet; +- (NSArray *) davCalendarScheduleInboxURL; - (NSArray *) davCalendarScheduleOutboxURL; @end diff --git a/SoObjects/SOGo/SOGoObject.m b/SoObjects/SOGo/SOGoObject.m index 8a0f0e24d..90df71afe 100644 --- a/SoObjects/SOGo/SOGoObject.m +++ b/SoObjects/SOGo/SOGoObject.m @@ -1236,7 +1236,7 @@ - (SOGoWebDAVValue *) davCurrentUserPrincipal { NSDictionary *userHREF; - NSString *login; + NSString *login, *s; SOGoUser *activeUser; SOGoWebDAVValue *davCurrentUserPrincipal; @@ -1246,7 +1246,8 @@ davCurrentUserPrincipal = nil; else { - userHREF = davElementWithContent (@"href", XMLNS_WEBDAV, [self davURLAsString]); + s = [NSString stringWithFormat: @"/SOGo/dav/%@", login]; + userHREF = davElementWithContent (@"href", XMLNS_WEBDAV, s); davCurrentUserPrincipal = [davElementWithContent (@"current-user-principal", XMLNS_WEBDAV,