Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
These APIs are used by the web IDE. They need to be on par with git & web access, allowing edits from maintainers to forks with merge requests that allow access.