Skip to content

Commit

Permalink
(js) Check alarms only if Calendar is accessible
Browse files Browse the repository at this point in the history
Fixes #4067
  • Loading branch information
cgx committed Mar 8, 2017
1 parent ab7ec63 commit e5dc76c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion UI/WebServerResources/js/Common/navController.js
Expand Up @@ -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')
Expand Down

0 comments on commit e5dc76c

Please sign in to comment.