(js) Check alarms only if Calendar is accessible

Fixes #4067
pull/234/head
Francis Lachapelle 2017-03-08 16:15:15 -05:00
parent ab7ec63f4b
commit e5dc76cc19
1 changed files with 4 additions and 1 deletions

View File

@ -109,7 +109,10 @@
// Listen to HTTP errors broadcasted from HTTP interceptor
$rootScope.$on('http:Error', onHttpError);
Alarm.getAlarms();
if (sgSettings.activeUser('path').calendar) {
// Fetch Calendar alarms
Alarm.getAlarms();
}
}
angular.module('SOGo.Common')