Skip to content

Commit 89077fc

Browse files
committed
Allow users to edit route TLS if they can create custom hosts
1 parent efba28a commit 89077fc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: app/scripts/directives/oscRouting.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ angular.module("openshiftConsole")
7575

7676
// Certificate updates also require custom host.
7777
scope.areCertificateInputsReadOnly = function() {
78-
return !canISetCustomHost();
78+
// For both new and existing routes, you can update TLS if you can
79+
// *create* custom hosts.
80+
// See https://github.com/openshift/origin/pull/18312
81+
return !scope.canICreateCustomHosts;
7982
};
8083

8184
scope.areCertificateInputsDisabled = function() {

Diff for: dist/scripts/scripts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10056,7 +10056,7 @@ return r.existingRoute ? r.canIUpdateCustomHosts : r.canICreateCustomHosts;
1005610056
r.isHostnameReadOnly = function() {
1005710057
return !c();
1005810058
}, r.disableWildcards = t.DISABLE_WILDCARD_ROUTES, r.areCertificateInputsReadOnly = function() {
10059-
return !c();
10059+
return !r.canICreateCustomHosts;
1006010060
}, r.areCertificateInputsDisabled = function() {
1006110061
var e = _.get(r, "route.tls.termination");
1006210062
return !e || "passthrough" === e;

0 commit comments

Comments
 (0)