stub out checker

This commit is contained in:
Samir Patel 2021-12-22 16:49:43 -06:00
parent 684c408b93
commit 49e9faa03b

View file

@ -518,6 +518,20 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
h.Handler.ServeHTTP(w, r)
}
// func (h *Handler)checkAuthorization(w http.ResponseWriter, r *http.Request, index string, neededPermission string) (bool, error){
// groups, err := h.auth.Authenticate(w, r)
// if err != nil {
// return false, errors.Wrap(err, "authenticating")
// }
// for group := range groups{
// // is this group admin?
// // what kind of permissions do they have for this index?
// }
// }
// statikHandler implements the http.Handler interface, and responds to
// requests for static assets with the appropriate file contents embedded
// in a statik filesystem.