MCPcopy Index your code
hub / github.com/writefreely/writefreely / isAuthorizedForCollection

Function isAuthorizedForCollection

collections.go:1415–1422  ·  view source on GitHub ↗
(app *App, alias string, r *http.Request)

Source from the content-addressed store, hash-verified

1413}
1414
1415func isAuthorizedForCollection(app *App, alias string, r *http.Request) bool {
1416 authd := false
1417 session, err := app.sessionStore.Get(r, blogPassCookieName)
1418 if err == nil {
1419 _, authd = session.Values[alias]
1420 }
1421 return authd
1422}
1423
1424func logOutCollection(app *App, alias string, w http.ResponseWriter, r *http.Request) error {
1425 session, err := app.sessionStore.Get(r, blogPassCookieName)

Callers 2

viewCollectionPostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected