This commit is contained in:
Chen-I Lim 2021-01-13 12:15:38 -08:00
parent 9b1d9e7a1c
commit 413a6e33c7

View file

@ -270,7 +270,6 @@ func (a *API) handleGetSubTree(w http.ResponseWriter, r *http.Request) {
return
}
// TODO: Check token
if sharing == nil || !(sharing.ID == rootID && sharing.Enabled && sharing.Token == readToken) {
log.Printf(`handleGetSubTree public unauthorized, rootID: %v`, rootID)
errorResponse(w, http.StatusUnauthorized, nil)