require owner for firewall config

This commit is contained in:
Girish Ramakrishnan
2020-08-31 22:55:30 -07:00
parent 854010b823
commit d7287b5c3c
2 changed files with 3 additions and 2 deletions

View File

@@ -6,6 +6,7 @@
angular.module('Application').controller('NetworkController', ['$scope', '$location', 'Client', function ($scope, $location, Client) {
Client.onReady(function () { if (!Client.getUserInfo().isAtLeastAdmin) $location.path('/'); });
$scope.user = Client.getUserInfo();
$scope.config = Client.getConfig();
// keep in sync with sysinfo.js