can't upload media in bbpress
-
I enabled the “add media” button in bbpress through bbpress-enable-tinymce-visual-tab plugin(by enabling “Fancy editor media upload”), and i can see the button in the forum, however i got error when trying to upload a picture:
“You don’t have permission to attach files to this post.”the site role is Author while the forum role is Participant.
I can add media if in wordpress, and I can also add media if the user is changed from participant to Keymaster.
the code is in ajax-actions.php, however, if i remove it i got “HTTP error.”
if ( isset( $_REQUEST['post_id'] ) ) { $post_id = $_REQUEST['post_id']; if ( ! current_user_can( 'edit_post', $post_id ) ) { echo wp_json_encode( array( 'success' => false, 'data' => array( 'message' => __( "You don't have permission to attach files to this post." ), 'filename' => $_FILES['async-upload']['name'], ) ) ); wp_die(); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.