Only show support ticket and remote support UI for paid plans

This commit is contained in:
Johannes Zellner
2020-02-19 14:19:35 +01:00
parent 932de7dba7
commit 1ef5fd1a0f
2 changed files with 58 additions and 51 deletions

View File

@@ -71,6 +71,8 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat
}
Client.onReady(function () {
getSubscription();
Client.getSupportConfig(function (error, supportConfig) {
if (error) return console.error(error);
@@ -80,8 +82,6 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat
if (error) return console.error(error);
$scope.sshSupportEnabled = enabled;
getSubscription();
});
});
});