Prevent creating CSV uploads without a service area
This commit is contained in:
parent
f2ea1367e2
commit
2f61b224de
2 changed files with 7 additions and 0 deletions
|
|
@ -46,6 +46,9 @@ func (o Organization) CountTrap(ctx context.Context) (uint, error) {
|
|||
}
|
||||
return uint(result), nil
|
||||
}
|
||||
func (o Organization) HasServiceArea() bool {
|
||||
return o.model.ServiceAreaGeometry.IsValue()
|
||||
}
|
||||
func (o Organization) Name() string {
|
||||
return o.model.Name
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue