diff options
-rw-r--r-- | system/api/handlers.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/system/api/handlers.go b/system/api/handlers.go index ae21500..07201ff 100644 --- a/system/api/handlers.go +++ b/system/api/handlers.go @@ -15,8 +15,10 @@ import ( func typesHandler(res http.ResponseWriter, req *http.Request) { var types = []string{} - for t := range item.Types { - types = append(types, string(t)) + for t, fn := range item.Types { + if !hide(fn(), res) { + types = append(types, t) + } } j, err := toJSON(types) |