MCPcopy
hub / github.com/writefreely/writefreely / checkUserForCollection

Function checkUserForCollection

collections.go:827–830  ·  view source on GitHub ↗
(app *App, cr *collectionReq, r *http.Request, isPostReq bool)

Source from the content-addressed store, hash-verified

825}
826
827func checkUserForCollection(app *App, cr *collectionReq, r *http.Request, isPostReq bool) (*User, error) {
828 u := getUserSession(app, r)
829 return u, nil
830}
831
832func newDisplayCollection(c *Collection, cr *collectionReq, page int) (*DisplayCollection, error) {
833 coll := &DisplayCollection{

Callers 4

viewCollectionPostFunction · 0.85
handleViewCollectionFunction · 0.85
handleViewCollectionTagFunction · 0.85
handleViewCollectionLangFunction · 0.85

Calls 1

getUserSessionFunction · 0.85

Tested by

no test coverage detected