Added authentication protection to edit and delete actions on discussion posts