mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-10 23:11:01 +00:00
stub out checker
This commit is contained in:
parent
684c408b93
commit
49e9faa03b
1 changed files with 14 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue