(fix) Reload Web calendars on CAS login
parent
04f939f107
commit
81ca398a35
|
@ -317,7 +317,9 @@
|
||||||
{
|
{
|
||||||
WOResponse *response;
|
WOResponse *response;
|
||||||
NSString *login, *logoutRequest, *newLocation, *oldLocation, *ticket;
|
NSString *login, *logoutRequest, *newLocation, *oldLocation, *ticket;
|
||||||
|
SOGoAppointmentFolders *calendars;
|
||||||
SOGoCASSession *casSession;
|
SOGoCASSession *casSession;
|
||||||
|
SOGoUser *loggedInUser;
|
||||||
SOGoWebAuthenticator *auth;
|
SOGoWebAuthenticator *auth;
|
||||||
WOCookie *casCookie, *casLocationCookie;
|
WOCookie *casCookie, *casLocationCookie;
|
||||||
WORequest *rq;
|
WORequest *rq;
|
||||||
|
@ -381,6 +383,11 @@
|
||||||
newLocation = [NSString stringWithFormat: @"%@%@",
|
newLocation = [NSString stringWithFormat: @"%@%@",
|
||||||
oldLocation, [login stringByEscapingURL]];
|
oldLocation, [login stringByEscapingURL]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
loggedInUser = [SOGoUser userWithLogin: login];
|
||||||
|
calendars = [loggedInUser calendarsFolderInContext: context];
|
||||||
|
if ([calendars respondsToSelector: @selector (reloadWebCalendars:)])
|
||||||
|
[calendars reloadWebCalendars: NO];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue