summaryrefslogtreecommitdiff
path: root/system/api
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-08 23:22:25 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-08 23:22:25 -0800
commitd5b31987a05df02cf4129e8603f2304b191e0834 (patch)
treeb750f41da25621e46a7ed8741319ec07577f5935 /system/api
parentad96d5fa100615ada7ae8f06e75088f9297122fd (diff)
adding error type rather than string as exported var from item
Diffstat (limited to 'system/api')
-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..869640f 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 != nil && err == item.ErrAllowHiddenItem {
return false
}