(js) Check alarms only if Calendar is accessible

Fixes #4067
This commit is contained in:
Francis Lachapelle
2017-03-08 16:15:15 -05:00
parent ab7ec63f4b
commit e5dc76cc19

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')