Protect the logs view from normal user access

This commit is contained in:
Johannes Zellner
2017-08-07 21:00:23 +02:00
parent 13b067eb88
commit ae19d8d754

View File

@@ -1,6 +1,8 @@
'use strict';
angular.module('Application').controller('LogsController', ['$scope', '$location', 'Client', function ($scope, $location, Client) {
Client.onReady(function () { if (!Client.getUserInfo().admin) $location.path('/'); });
$scope.config = Client.getConfig();
$scope.user = Client.getUserInfo();