Fix chapter group meta field permission check
This commit is contained in:
parent
d0714c2a13
commit
6f394d5842
@ -1176,7 +1176,7 @@ function fictioneer_ajax_get_chapter_group_options() {
|
||||
wp_send_json_error( array( 'error' => 'Request did not pass validation.' ) );
|
||||
}
|
||||
|
||||
if ( ! $user || ! current_user_can( 'edit_fcn_stories' ) ) {
|
||||
if ( ! $user || ! current_user_can( 'edit_fcn_chapters' ) ) {
|
||||
wp_send_json_error( array( 'error' => 'User did not pass validation.' ) );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user