Add initial user selector for impersonation page

This commit is contained in:
Eli Ribble 2026-03-20 05:20:37 +00:00
parent 68e0da1133
commit 42d9d2372d
No known key found for this signature in database
9 changed files with 370 additions and 31 deletions

View file

@ -2,6 +2,7 @@ package platform
import (
"context"
"encoding/json"
"fmt"
"github.com/Gleipnir-Technology/bob/dialect/psql/sm"
@ -52,6 +53,11 @@ func (o Organization) HasServiceArea() bool {
func (o Organization) IsCatchall() bool {
return o.model.IsCatchall
}
func (o Organization) MarshalJSON() ([]byte, error) {
to_marshal := map[string]any{}
to_marshal["name"] = o.Name()
return json.Marshal(to_marshal)
}
func (o Organization) Name() string {
return o.model.Name
}