mirror of
https://github.com/coder/coder.git
synced 2025-07-18 14:17:22 +00:00
feat: remove site wide perms from creating a workspace (#17296)
Creating a workspace required `read` on site wide `user`. Only organization permissions should be required.
This commit is contained in:
10
coderd/httpapi/noop.go
Normal file
10
coderd/httpapi/noop.go
Normal file
@ -0,0 +1,10 @@
|
||||
package httpapi
|
||||
|
||||
import "net/http"
|
||||
|
||||
// NoopResponseWriter is a response writer that does nothing.
|
||||
type NoopResponseWriter struct{}
|
||||
|
||||
func (NoopResponseWriter) Header() http.Header { return http.Header{} }
|
||||
func (NoopResponseWriter) Write(p []byte) (int, error) { return len(p), nil }
|
||||
func (NoopResponseWriter) WriteHeader(int) {}
|
Reference in New Issue
Block a user