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