codeforamerica/honolulu_answers — pull request #29 by hale (2013-09-03 23:50:21+00:00)
Title: [#39] Writers can edit any article if it is a Draft

Trello: https://trello.com/c/QmV6DnRl

---

There is a bug where if you are a writer and you create an article you can no longer edit it. This is because no user_id is being set on the article when it is saved, it can only be set by an admin who then edits the article.

Conveniently, it was decided that writers should be able to edit any article, even those they did not originally create.

Therefore this fix simply removes the constraint from CanCan that the article must belong to the given user.

There still remains a bug however that the writer of the article is not being set. This is documented by https://trello.com/c/i8tGalgt