mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 03:29:43 +00:00
Fix intention endpoint test
This commit is contained in:
parent
84fac3ce0e
commit
727b81a757
@ -325,7 +325,7 @@ func (ixn *Intention) CanRead(authz acl.Authorizer) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ixn *Intention) CanWrite(authz acl.Authorizer) bool {
|
func (ixn *Intention) CanWrite(authz acl.Authorizer) bool {
|
||||||
if authz == nil {
|
if authz == nil || authz == acl.ManageAll() {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
var authzContext acl.AuthorizerContext
|
var authzContext acl.AuthorizerContext
|
||||||
|
Loading…
x
Reference in New Issue
Block a user