diff --git a/src/index.html b/src/index.html
index cfc42072f..e36963b1d 100644
--- a/src/index.html
+++ b/src/index.html
@@ -159,7 +159,7 @@
{{ 'users.title' | tr }}
-
+
diff --git a/src/js/main.js b/src/js/main.js
index 8a665c494..56d3d397e 100644
--- a/src/js/main.js
+++ b/src/js/main.js
@@ -64,6 +64,8 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
};
function refreshNotifications() {
+ if (!Client.getUserInfo().isAtLeastAdmin) return;
+
Client.getNotifications({ acknowledged: false }, 1, 100, function (error, results) { // counter maxes out at 100
if (error) console.error(error);
else $scope.notificationCount = results.length;
diff --git a/src/views/notifications.js b/src/views/notifications.js
index 7349fde38..93066be19 100644
--- a/src/views/notifications.js
+++ b/src/views/notifications.js
@@ -3,7 +3,9 @@
/* global async */
/* global angular */
-angular.module('Application').controller('NotificationsController', ['$scope', '$timeout', '$translate', '$interval', 'Client', function ($scope, $timeout, $translate, $interval, Client) {
+angular.module('Application').controller('NotificationsController', ['$scope', '$location', '$timeout', '$translate', '$interval', 'Client', function ($scope, $location, $timeout, $translate, $interval, Client) {
+ Client.onReady(function () { if (!Client.getUserInfo().isAtLeastAdmin) $location.path('/'); });
+
$scope.clearAllBusy = false;
$scope.notifications = [];