Require service:read to read terminating-gateway config

This commit is contained in:
freddygv 2020-04-09 16:35:52 -06:00
parent a1648c61ae
commit c9385129ae
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 var authzContext acl.AuthorizerContext
e.FillAuthzContext(&authzContext) 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 { func (e *TerminatingGatewayConfigEntry) CanWrite(authz acl.Authorizer) bool {