Skip to content

Commit

Permalink
fix: exclusion label
Browse files Browse the repository at this point in the history
  • Loading branch information
tolgaOzen committed May 16, 2023
1 parent 0a39b1e commit 4d2b790
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/development/graph/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func buildPermissionGraph(entity *base.EntityDefinition, from *Node, children []

// Add the rewrite node to the graph and connect it to the parent node
g.AddNode(rw)
g.AddEdge(from, rw, nil)
g.AddEdge(from, rw, child.GetExclusion())
// Recursively process the children of the rewrite node
ag, err := buildPermissionGraph(entity, rw, child.GetRewrite().GetChildren())
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions playground/src/pkg/Visualizer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function Visualizer(props) {
edges.push({
from: props.graph.edges[index].from.id,
to: props.graph.edges[index].to.id,
label: props.graph.edges[index].extra ? "not" : "",
color: {color: 'rgba(91,204,99,0.4)', inherit: false},
dashes: false
})
Expand Down

0 comments on commit 4d2b790

Please sign in to comment.