summaryrefslogtreecommitdiff
path: root/system/api/handlers.go
diff options
context:
space:
mode:
authorSteve <nilslice@gmail.com>2017-01-12 16:19:00 -0800
committerGitHub <noreply@github.com>2017-01-12 16:19:00 -0800
commit21b9f301c5e1305c3be4e260161d2495bca059de (patch)
tree3be88e282bb9801b5b0354f89c5fe127996b0b6a /system/api/handlers.go
parentad96d5fa100615ada7ae8f06e75088f9297122fd (diff)
[addons] Expanding basic addon framework (#29)
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 8b4a387..1bc4fbb 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 != nil && err.Error() == item.AllowHiddenItem {
+ if err == item.ErrAllowHiddenItem {
return false
}