Show credentials only for custom domain

This commit is contained in:
Girish Ramakrishnan
2016-07-05 12:18:26 -05:00
parent ff9fb1912b
commit 202af95502
2 changed files with 4 additions and 2 deletions

View File

@@ -3,6 +3,8 @@
angular.module('Application').controller('CertsController', ['$scope', '$location', 'Client', function ($scope, $location, Client) {
Client.onReady(function () { if (!Client.getUserInfo().admin || !Client.getConfig().isCustomDomain) $location.path('/'); });
$scope.config = Client.getConfig();
$scope.defaultCert = {
error: null,
success: false,