mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: make default workspace proxy editable (#7903)
* chore: add editing the default workspace proxy
This commit is contained in:
@@ -186,6 +186,10 @@ func (w WorkspaceProxy) RBACObject() rbac.Object {
|
||||
WithID(w.ID)
|
||||
}
|
||||
|
||||
func (w WorkspaceProxy) IsPrimary() bool {
|
||||
return w.Name == "primary"
|
||||
}
|
||||
|
||||
func (f File) RBACObject() rbac.Object {
|
||||
return rbac.ResourceFile.
|
||||
WithID(f.ID).
|
||||
|
||||
Reference in New Issue
Block a user