acl: Avoid infinite recursion...

pull/291/head
Armon Dadgar 10 years ago
parent c2153843c6
commit 78580a733e

@ -158,10 +158,10 @@ func (p *PolicyACL) KeyWrite(key string) bool {
// ACLList checks if listing of ACLs is allowed
func (p *PolicyACL) ACLList() bool {
return p.ACLList()
return p.parent.ACLList()
}
// ACLModify checks if modification of ACLs is allowed
func (p *PolicyACL) ACLModify() bool {
return p.ACLModify()
return p.parent.ACLModify()
}

Loading…
Cancel
Save