[REST API] Fixed batch permissions for posts
This commit is contained in:
parent
a7d52e9bf3
commit
e91631d540
|
@ -215,7 +215,7 @@ function wc_rest_check_post_permissions( $post_type, $context = 'read', $object_
|
||||||
'create' => 'publish_posts',
|
'create' => 'publish_posts',
|
||||||
'edit' => 'edit_post',
|
'edit' => 'edit_post',
|
||||||
'delete' => 'delete_post',
|
'delete' => 'delete_post',
|
||||||
'batch' => 'edit_post',
|
'batch' => 'edit_others_posts',
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( 'revision' === $post_type ) {
|
if ( 'revision' === $post_type ) {
|
||||||
|
|
Loading…
Reference in New Issue