Feedback API has moved to cloudron scope

This commit is contained in:
Girish Ramakrishnan
2018-06-14 20:04:38 -07:00
parent 9db334c2a4
commit edf277fcaf

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('settings')) $location.path('/'); });
Client.onReady(function () { if (!Client.hasScope('cloudron')) $location.path('/'); });
$scope.config = Client.getConfig();
$scope.user = Client.getUserInfo();