fix: adjust build state permission to require template update (#6472)
This commit is contained in:
1 parent
29ced72cda
commit
74632e460c
2 files changed
+13
-3
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user