Update nomad/deployment_endpoint.go
This commit is contained in:
parent
0e509bc11e
commit
bfa366ea72
|
@ -54,7 +54,7 @@ func (d *Deployment) GetDeployment(args *structs.DeploymentSpecificRequest,
|
|||
|
||||
// Re-check namespace in case it differs from request.
|
||||
if out != nil && !allowNsOp(aclObj, out.Namespace) {
|
||||
// 404
|
||||
// hide this deployment, caller is not authorized to view it
|
||||
out = nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue