summaryrefslogtreecommitdiff
path: root/system/api/handlers.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-30 14:44:00 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-30 14:44:00 -0800
commitca002d0f447f0e9d7a71cd502a20b63277a612ce (patch)
treef5d7913215bb6b9c38946912f4d917083cdb76f8 /system/api/handlers.go
parent9d366bea7c540edc767ebab9f6a0ace26c25e5fe (diff)
updating error in addond and checking for nil prior to clling method on err
Diffstat (limited to 'system/api/handlers.go')
-rw-r--r--system/api/handlers.go2
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
}