- Removed useless code.
- Fixed permissions for posts.