mirror of
https://github.com/coder/coder.git
synced 2025-06-28 04:33:02 +00:00
feat: Add RBAC to /files endpoints (#1664)
* feat: Add RBAC to /files endpoints
This commit is contained in:
@ -50,7 +50,7 @@ func TestDownload(t *testing.T) {
|
||||
_, _, err := client.Download(context.Background(), "something")
|
||||
var apiErr *codersdk.Error
|
||||
require.ErrorAs(t, err, &apiErr)
|
||||
require.Equal(t, http.StatusNotFound, apiErr.StatusCode())
|
||||
require.Equal(t, http.StatusForbidden, apiErr.StatusCode())
|
||||
})
|
||||
|
||||
t.Run("Insert", func(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user