Remove usage of tokenScopes and caps

This commit is contained in:
Girish Ramakrishnan
2018-08-03 10:09:04 -07:00
parent 7969dff043
commit cf5cf9e42f
17 changed files with 34 additions and 60 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
/* global asyncForEach:false */
angular.module('Application').controller('UsersController', ['$scope', '$location', '$timeout', 'Client', function ($scope, $location, $timeout, Client) {
Client.onReady(function () { if (!Client.hasScope('users')) $location.path('/'); });
Client.onReady(function () { if (!Client.getUserInfo().admin) $location.path('/'); });
$scope.ready = false;
$scope.users = [];