Capabilities

Changed capability check to work with post types with custom capabilities