'use strict';

angular.module('admin').controller('ReloadController', ['$scope', 'Admin',
	function($scope, Admin) {
		 $scope.reload = function () {
             Admin.reload(function(res) {
                 $scope.reloadedDevices = res.reloadedDevices;
             });
         };
	}
]);
'use strict';

angular.module('admin').controller('ReloadController', ['$scope', '$location', 'Authentication', 'Admin',
	function($scope, $location, Authentication, Admin) {
        // If user is not signed in then redirect back home
        if (!Authentication.user) $location.path('/');

		 $scope.reload = function () {
             Admin.reload(function(res) {
                 $scope.reloadedDevices = res.reloadedDevices;
             });
         };
	}
]);
Fix not logged-in users being able to access the reload page.
Fix not logged-in users being able to access the reload page. [IQSLDSH-364]
