Skip to content

Commit

Permalink
Fix chapter group meta field permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetrakern committed Dec 22, 2024
1 parent d0714c2 commit 6f394d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/functions/_setup-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.' ) );
}

Expand Down

0 comments on commit 6f394d5

Please sign in to comment.