|
|
|
@ -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)
|
|
|
|
|
}
|
|
|
|
|