Commit 915b2b0
Callum Styan
refactor(coderd/dbauthz): use authorizeContext for system check
Replace direct actor type checking with authorizeContext pattern
for consistency with other dbauthz wrappers. This checks for
ActionRead on ResourceSystem, which will only succeed for
system-restricted contexts.1 parent abddcbe commit 915b2b0
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3930 | 3930 | | |
3931 | 3931 | | |
3932 | 3932 | | |
3933 | | - | |
3934 | | - | |
3935 | | - | |
3936 | | - | |
| 3933 | + | |
| 3934 | + | |
| 3935 | + | |
| 3936 | + | |
| 3937 | + | |
3937 | 3938 | | |
3938 | 3939 | | |
3939 | 3940 | | |
| |||
0 commit comments