Add initial user selector for impersonation page
This commit is contained in:
parent
68e0da1133
commit
42d9d2372d
9 changed files with 370 additions and 31 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue