Fix intention endpoint test
This commit is contained in:
parent
9b41e7287f
commit
241b6429c3
|
@ -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…
Reference in New Issue