fix: adjust build state permission to require template update (#6472)

This commit is contained in:
Kyle Carberry authored and GitHub committed 2023-03-07 04:24:32 +00:00
1 parent 29ced72cda
commit 74632e460c
2 files changed
+13 -3

No files matched your search

+2 -2
View File
@@ -132,8 +132,8 @@ func AGPLRoutes(a *AuthTester) (map[string]string, map[string]RouteCheck) {
AssertObject: workspaceRBACObj,
},
"GET:/api/v2/workspacebuilds/{workspacebuild}/state": {
AssertAction: rbac.ActionRead,
AssertObject: workspaceRBACObj,
AssertAction: rbac.ActionUpdate,
AssertObject: templateObj,
},
"GET:/api/v2/workspaceagents/{workspaceagent}": {
AssertAction: rbac.ActionRead,