From 241b6429c3b660485f7d93e874a8c465f4e68f7d Mon Sep 17 00:00:00 2001 From: Evan Culver Date: Thu, 15 Jul 2021 15:28:01 -0700 Subject: [PATCH] Fix intention endpoint test --- agent/structs/intention.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/structs/intention.go b/agent/structs/intention.go index 2549f8d5e..078bcbe50 100644 --- a/agent/structs/intention.go +++ b/agent/structs/intention.go @@ -325,7 +325,7 @@ func (ixn *Intention) CanRead(authz acl.Authorizer) bool { } func (ixn *Intention) CanWrite(authz acl.Authorizer) bool { - if authz == nil { + if authz == nil || authz == acl.ManageAll() { return true } var authzContext acl.AuthorizerContext