diff --git a/policy.go b/policy.go index 09cdd15..42a5360 100644 --- a/policy.go +++ b/policy.go @@ -273,7 +273,7 @@ func (policy *DependencyPolicy) Allows(node Node, resource string, action string return false } - for _, req := range(lockable.Requirements()) { + for _, req := range(lockable.Dependencies()) { if req.ID() == principal.ID() { return policy.Actions.Allows(resource, action) }