diff --git a/includes/Ajax/Admin_Form_Builder_Ajax.php b/includes/Ajax/Admin_Form_Builder_Ajax.php
index c9762113e..014dac5e6 100644
--- a/includes/Ajax/Admin_Form_Builder_Ajax.php
+++ b/includes/Ajax/Admin_Form_Builder_Ajax.php
@@ -95,10 +95,6 @@ public function wpuf_get_post_taxonomies_old() {
wp_send_json_error( __( 'Unauthorized operation', 'wp-user-frontend' ) );
}
- if ( ! current_user_can( wpuf_admin_role() ) ) {
- wp_send_json_error( __( 'Unauthorized operation', 'wp-user-frontend' ) );
- }
-
if ( isset( $post_type ) && empty( $post_data['post_type'] ) ) {
wp_send_json_error( __( 'Invalid post type', 'wp-user-frontend' ) );
}
@@ -146,10 +142,6 @@ public function get_post_taxonomies() {
wp_send_json_error( __( 'Unauthorized operation', 'wp-user-frontend' ) );
}
- if ( ! current_user_can( wpuf_admin_role() ) ) {
- wp_send_json_error( __( 'Unauthorized operation', 'wp-user-frontend' ) );
- }
-
if ( isset( $post_type ) && empty( $post_data['post_type'] ) ) {
wp_send_json_error( __( 'Invalid post type', 'wp-user-frontend' ) );
}
@@ -186,7 +178,7 @@ public function get_post_taxonomies() {
$cat .= '