fix: unable to push to a fork #36

closed
opened by dvjn.dev targeting master

give user the permission to push to his fork :)

Changed files
+8
knotserver
+8
knotserver/routes.go
··· 617 return 618 } 619 620 w.WriteHeader(http.StatusNoContent) 621 } 622
··· 617 return 618 } 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 + 628 w.WriteHeader(http.StatusNoContent) 629 } 630