diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-08-15 13:39:00 -0600 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-08-15 15:14:52 -0600 |
commit | 075aba63ff98f6f16383f27895856da1569761c4 (patch) | |
tree | db6ae78b4770ae728d7c5623cb1214d4ef006910 /system/api/hide.go | |
parent | 4818fd1fd68f6c8f1afe0c730cf4bca1861e6589 (diff) |
update Omittable, Pushable, interface to take res, req pair like Hooks, update implementations & hydrate items
Diffstat (limited to 'system/api/hide.go')
-rw-r--r-- | system/api/hide.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/api/hide.go b/system/api/hide.go index eed2c8b..2f57d3d 100644 --- a/system/api/hide.go +++ b/system/api/hide.go @@ -6,7 +6,7 @@ import ( "github.com/ponzu-cms/ponzu/system/item" ) -func hide(it interface{}, res http.ResponseWriter, req *http.Request) bool { +func hide(res http.ResponseWriter, req *http.Request, it interface{}) bool { // check if should be hidden if h, ok := it.(item.Hideable); ok { err := h.Hide(res, req) |