Function to check for user permissions
Add metaboxes and custom fields