From c64dd728edd6cc6b00ff586e922e5fab0ce87d9a Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Mon, 24 Jul 2023 01:22:43 -0600 Subject: [PATCH] fix --- policy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }