API.Posts: Posts can now only be edited by authors.

Add a check that post.user_id == current_user.id.
API.Utils: Pythonic fix to if statement.