Update required permissions

- Added requiredPermissions to `posts` and `categories` controllers.
- Added user_id to database table.
- Created a new permission to allow user to manage others posts, and
restrict user to manage only their posts.