Commit 115158a8 authored by 智勇's avatar 智勇

params.fromJenkins

parent 2b042e0c
...@@ -54,7 +54,7 @@ class Client { ...@@ -54,7 +54,7 @@ class Client {
} }
post(action, params = {}) { post(action, params = {}) {
if (params.namespace && this.defaultNamespaces.includes(params.namespace)) { if (!params.fromJenkins && params.namespace && this.defaultNamespaces.includes(params.namespace)) {
return Promise.reject(new Error('未授权的namespace')) return Promise.reject(new Error('未授权的namespace'))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment