Commit b0d15a1
UN-2868 [FIX] Restrict tool modification to workflow owners only
Added ownership check to prevent non-owners from modifying workflow tools:
- Added isWorkflowOwner() helper function to compare current user ID with workflow creator ID
- Disabled "Change Prompt Studio project" button for non-owners
- Disabled "Configure Settings" button for non-owners
- Handles type differences between user IDs (integer vs string) by converting both to strings
This ensures that only workflow owners can change or configure the Prompt Studio projects in shared workflows.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent ac70278 commit b0d15a1
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
393 | 402 | | |
394 | 403 | | |
395 | 404 | | |
| |||
1147 | 1156 | | |
1148 | 1157 | | |
1149 | 1158 | | |
| 1159 | + | |
1150 | 1160 | | |
1151 | 1161 | | |
1152 | 1162 | | |
| |||
1164 | 1174 | | |
1165 | 1175 | | |
1166 | 1176 | | |
1167 | | - | |
| 1177 | + | |
1168 | 1178 | | |
1169 | 1179 | | |
1170 | 1180 | | |
| |||
0 commit comments