graph-rework-2
noah metz 2023-07-24 01:22:43 -06:00
parent 3ce1e3ad91
commit c64dd728ed
1 changed files with 1 additions and 1 deletions

@ -273,7 +273,7 @@ func (policy *DependencyPolicy) Allows(node Node, resource string, action string
return false return false
} }
for _, req := range(lockable.Requirements()) { for _, req := range(lockable.Dependencies()) {
if req.ID() == principal.ID() { if req.ID() == principal.ID() {
return policy.Actions.Allows(resource, action) return policy.Actions.Allows(resource, action)
} }