- fixed capabilities for UM custom post types;

This commit is contained in:
nikitozzzzzzz
2017-12-08 10:51:45 +02:00
parent ba02dd61fc
commit a96753c931
+16 -16
View File
@@ -34,14 +34,14 @@ if ( ! class_exists( 'Common' ) ) {
'search_items' => __('Search Forms')
),
'capabilities' => array(
'edit_post' => 'update_core',
'read_post' => 'update_core',
'delete_post' => 'update_core',
'edit_posts' => 'update_core',
'edit_others_posts' => 'update_core',
'delete_posts' => 'update_core',
'publish_posts' => 'update_core',
'read_private_posts' => 'update_core'
'edit_post' => 'manage_options',
'read_post' => 'manage_options',
'delete_post' => 'manage_options',
'edit_posts' => 'manage_options',
'edit_others_posts' => 'manage_options',
'delete_posts' => 'manage_options',
'publish_posts' => 'manage_options',
'read_private_posts' => 'manage_options'
),
'show_ui' => true,
'show_in_menu' => false,
@@ -63,14 +63,14 @@ if ( ! class_exists( 'Common' ) ) {
'search_items' => __('Search Member Directories')
),
'capabilities' => array(
'edit_post' => 'update_core',
'read_post' => 'update_core',
'delete_post' => 'update_core',
'edit_posts' => 'update_core',
'edit_others_posts' => 'update_core',
'delete_posts' => 'update_core',
'publish_posts' => 'update_core',
'read_private_posts' => 'update_core'
'edit_post' => 'manage_options',
'read_post' => 'manage_options',
'delete_post' => 'manage_options',
'edit_posts' => 'manage_options',
'edit_others_posts' => 'manage_options',
'delete_posts' => 'manage_options',
'publish_posts' => 'manage_options',
'read_private_posts' => 'manage_options'
),
'show_ui' => true,
'show_in_menu' => false,