Fixed the method that returns the current-user-principal.
parent
3e8f7cb29e
commit
73ff981d4f
|
@ -32,6 +32,7 @@
|
||||||
|
|
||||||
- (NSArray *) davCalendarUserAddressSet;
|
- (NSArray *) davCalendarUserAddressSet;
|
||||||
- (NSArray *) davCalendarHomeSet;
|
- (NSArray *) davCalendarHomeSet;
|
||||||
|
- (NSArray *) davCalendarScheduleInboxURL;
|
||||||
- (NSArray *) davCalendarScheduleOutboxURL;
|
- (NSArray *) davCalendarScheduleOutboxURL;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -1236,7 +1236,7 @@
|
||||||
- (SOGoWebDAVValue *) davCurrentUserPrincipal
|
- (SOGoWebDAVValue *) davCurrentUserPrincipal
|
||||||
{
|
{
|
||||||
NSDictionary *userHREF;
|
NSDictionary *userHREF;
|
||||||
NSString *login;
|
NSString *login, *s;
|
||||||
SOGoUser *activeUser;
|
SOGoUser *activeUser;
|
||||||
SOGoWebDAVValue *davCurrentUserPrincipal;
|
SOGoWebDAVValue *davCurrentUserPrincipal;
|
||||||
|
|
||||||
|
@ -1246,7 +1246,8 @@
|
||||||
davCurrentUserPrincipal = nil;
|
davCurrentUserPrincipal = nil;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
userHREF = davElementWithContent (@"href", XMLNS_WEBDAV, [self davURLAsString]);
|
s = [NSString stringWithFormat: @"/SOGo/dav/%@", login];
|
||||||
|
userHREF = davElementWithContent (@"href", XMLNS_WEBDAV, s);
|
||||||
davCurrentUserPrincipal
|
davCurrentUserPrincipal
|
||||||
= [davElementWithContent (@"current-user-principal",
|
= [davElementWithContent (@"current-user-principal",
|
||||||
XMLNS_WEBDAV,
|
XMLNS_WEBDAV,
|
||||||
|
|
Loading…
Reference in New Issue