Disable various views for non-operators

This commit is contained in:
Girish Ramakrishnan
2018-09-05 14:37:54 -07:00
parent 97b6e4c672
commit 02f04e2d33
10 changed files with 25 additions and 17 deletions

View File

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