package webauth import ( "github.com/AaronO/go-git-http/auth" ) func AuthorizeReadOnly(authInfo auth.AuthInfo) (bool, error) { if authInfo.Fetch { return true, nil } return false, nil } func AuthorizeAll(authInfo auth.AuthInfo) (bool, error) { return true, nil }