Update nomad/deployment_endpoint.go

This commit is contained in:
Chris Baker 2020-09-08 16:39:51 -05:00 committed by GitHub
parent 0e509bc11e
commit bfa366ea72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}