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