Skip to content

Commit 86f1026

Browse files
authored
Merge pull request #2706 from port-labs/change-dynamic-permission-page-example
changed the example in dynamic permission page
2 parents 48b7552 + 52c42c5 commit 86f1026

File tree

1 file changed

+2
-2
lines changed
  • docs/actions-and-automations/create-self-service-experiences/set-self-service-actions-rbac

1 file changed

+2
-2
lines changed

docs/actions-and-automations/create-self-service-experiences/set-self-service-actions-rbac/dynamic-permissions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ This is particularly important for sensitive operations like production deployme
355355
}
356356
},
357357
"conditions": [
358-
"[.results.approvingUsers.entities[] | select(.identifier != \"{{.trigger.user.email}}\") | .identifier]"
358+
".trigger.user.email as $executor | [.results.approvingUsers.entities[] | select(.identifier != $executor) | .identifier]"
359359
]
360360
}
361361
}
@@ -376,7 +376,7 @@ Here's what's happening in each part:
376376

377377
3. **The Key Condition**:
378378
```json
379-
"[.results.approvingUsers.entities[] | select(.identifier != \"{{.trigger.user.email}}\") | .identifier]"
379+
".trigger.user.email as $executor | [.results.approvingUsers.entities[] | select(.identifier != $executor) | .identifier]"
380380
```
381381
This JQ expression:
382382
- Takes all moderator users from our query results.

0 commit comments

Comments
 (0)