Fix chapter group meta field permission check

This commit is contained in:
Tetrakern 2024-12-23 00:06:39 +01:00
parent d0714c2a13
commit 6f394d5842

View File

@ -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.' ) );
}