mirror of https://github.com/status-im/consul.git
Require service:read to read terminating-gateway config
This commit is contained in:
parent
a1648c61ae
commit
c9385129ae
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue