Commit 7893620
committed
Guard run_user_tool against legacy half-deactivated UDT rows
Before the manager fix in the prior commit, deactivate_unprivileged_tool
only flipped UserDynamicToolAssociation.active, leaving DynamicTool.active
true. Any deployment that deactivated UDTs through the existing
/api/unprivileged_tools DELETE endpoint before this branch landed has
rows in that half-state. Checking dynamic_tool.active alone would let
those legacy entries run via run_user_tool. Also verify the user's
association is active so legacy rows surface as "deactivated" instead.1 parent e94750c commit 7893620
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
923 | 927 | | |
924 | 928 | | |
925 | 929 | | |
926 | 930 | | |
927 | 931 | | |
928 | 932 | | |
929 | 933 | | |
930 | | - | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
931 | 945 | | |
932 | 946 | | |
933 | 947 | | |
| |||
0 commit comments