Require service:read to read terminating-gateway config

This commit is contained in:
freddygv 2020-04-09 16:35:52 -06:00
parent 4b1b42cef5
commit 243c015c52
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ func (e *TerminatingGatewayConfigEntry) CanRead(authz acl.Authorizer) bool {
var authzContext acl.AuthorizerContext
e.FillAuthzContext(&authzContext)
return authz.OperatorRead(&authzContext) == acl.Allow
return authz.ServiceRead(e.Name, &authzContext) == acl.Allow
}
func (e *TerminatingGatewayConfigEntry) CanWrite(authz acl.Authorizer) bool {