diff options
Diffstat (limited to 'system/api/handlers.go')
-rw-r--r-- | system/api/handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/api/handlers.go b/system/api/handlers.go index af0808d..8b4a387 100644 --- a/system/api/handlers.go +++ b/system/api/handlers.go @@ -178,7 +178,7 @@ func hide(it interface{}, res http.ResponseWriter, req *http.Request) bool { // check if should be hidden if h, ok := it.(item.Hideable); ok { err := h.Hide(req) - if err.Error() == item.AllowHiddenItem { + if err != nil && err.Error() == item.AllowHiddenItem { return false } |