Remove policies read requirement to signal

graph-rework-2
noah metz 2023-07-24 01:48:03 -06:00
parent fa10ccd743
commit 201ee7234b
1 changed files with 1 additions and 1 deletions

@ -203,7 +203,7 @@ func (node * GraphNode) Type() NodeType {
func Signal(context *StateContext, node Node, princ Node, signal GraphSignal) error { func Signal(context *StateContext, node Node, princ Node, signal GraphSignal) error {
context.Graph.Log.Logf("signal", "SIGNAL: %s - %s", node.ID(), signal.String()) context.Graph.Log.Logf("signal", "SIGNAL: %s - %s", node.ID(), signal.String())
err := UseStates(context, princ, NewLockInfo(node, []string{"policies"}), func(context *StateContext) error { err := UseStates(context, princ, NewLockInfo(node, []string{}), func(context *StateContext) error {
return Allowed(context, node.Policies(), node, "signal", signal.Type(), princ) return Allowed(context, node.Policies(), node, "signal", signal.Type(), princ)
}) })