Only show dns and cert pages for custom domain cloudrons

This commit is contained in:
Johannes Zellner
2015-11-09 09:56:08 +01:00
parent c64697dde7
commit 73568777c0
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
'use strict';
angular.module('Application').controller('CertsController', ['$scope', '$location', 'Client', function ($scope, $location, Client) {
Client.onReady(function () { if (!Client.getUserInfo().admin) $location.path('/'); });
Client.onReady(function () { if (!Client.getUserInfo().admin || !Client.getConfig().isCustomDomain) $location.path('/'); });
$scope.defaultCert = {
error: null,