mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 15:47:21 +00:00
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
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user