diff --git a/includes/functions/users/_checkmarks.php b/includes/functions/users/_checkmarks.php index d5a58912..0fe8b0db 100644 --- a/includes/functions/users/_checkmarks.php +++ b/includes/functions/users/_checkmarks.php @@ -240,6 +240,10 @@ function fictioneer_ajax_get_finished_checkmarks_list() { // Validations $user = fictioneer_get_validated_ajax_user(); + if ( ! is_user_logged_in() ) { + wp_send_json_error( array( 'error' => 'You must be logged in.' ) ); + } + if ( ! $user ) { wp_send_json_error( array( 'error' => 'Request did not pass validation.' ) ); } diff --git a/includes/functions/users/_follows.php b/includes/functions/users/_follows.php index c6142733..1942be93 100644 --- a/includes/functions/users/_follows.php +++ b/includes/functions/users/_follows.php @@ -395,6 +395,10 @@ function fictioneer_ajax_get_follows_list() { // Validations $user = fictioneer_get_validated_ajax_user(); + if ( ! is_user_logged_in() ) { + wp_send_json_error( array( 'error' => 'You must be logged in.' ) ); + } + if ( ! $user ) { wp_send_json_error( array( 'error' => 'Request did not pass validation.' ) ); } diff --git a/includes/functions/users/_reminders.php b/includes/functions/users/_reminders.php index 517b8591..245c1863 100644 --- a/includes/functions/users/_reminders.php +++ b/includes/functions/users/_reminders.php @@ -167,6 +167,10 @@ function fictioneer_ajax_get_reminders_list() { // Validations $user = fictioneer_get_validated_ajax_user(); + if ( ! is_user_logged_in() ) { + wp_send_json_error( array( 'error' => 'You must be logged in.' ) ); + } + if ( ! $user ) { wp_send_json_error( array( 'error' => 'Request did not pass validation.' ) ); }