diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-08-15 15:43:49 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-15 15:43:49 -0600 |
commit | c9a6c2ef34d4c290223963d6e836926c6b58eb1b (patch) | |
tree | 5344df00833337f3b16e59ef80ffdf2efa5b0a5e /system/api/hide.go | |
parent | 4818fd1fd68f6c8f1afe0c730cf4bca1861e6589 (diff) | |
parent | 9a14fd72fe0c771d45c79069c65ac9a7170dcaf2 (diff) |
Merge pull request #184 from ponzu-cms/ponzu-dev
[core] update Omittable, Pushable interfaces and implementations to take res/req pair and hydrate item for caller
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) |