Closed ghost closed 12 years ago
Actually the current functionality allows anyone to "edit" pastes. They just become commits. I suppose ideally this should be a preference on the pastes themselves, but that was the intended functionality.
The reason why you are seeing that error is because of the way Heroku deploys projects. If I push commits then the repositories are removed. Not exactly ideal, but the Heroku deployment is for testing purposes. So, that error is not supposed to happen on live deployments.
It should work now. I had to clear out the old database.
It's currently possible to click an edit link on a paste that belongs to another user. When doing so, you are given an edit screen where you can make changes. When submitting those changes, you're given a "NoSuchPathError at /paste/XX/edit/" error, where XX is the paste number you're editing.
I assume we don't want an edit link at all on pastes you don't own, and when manually visiting an edit page for a paste you don't own, you should be given a permissions error.