+8
knotserver/routes.go
+8
knotserver/routes.go
···
617
617
return
618
618
}
619
619
620
+
// add perms for this user to access the repo
621
+
err = h.e.AddRepo(did, ThisServer, relativeRepoPath)
622
+
if err != nil {
623
+
l.Error("adding repo permissions", "error", err.Error())
624
+
writeError(w, err.Error(), http.StatusInternalServerError)
625
+
return
626
+
}
627
+
620
628
w.WriteHeader(http.StatusNoContent)
621
629
}
622
630