I experienced this issue, despite the Forum permission being set properly in the Forum Admin area. I fixed it with the below line of code in the modules (backslash) Forums (backslash) posting.php file:
CodeSelect all
if ( $userdata['session_logged_in'] == 0 ) {
message_die( GENERAL_MESSAGE, sprintf( $lang['Sorry_' . $is_auth_type ], $is_auth[ $is_auth_type . "_type"] ) );
}
Search the posting.php file for some of the below code. In my file, it started at about line 358. The completed code should look like the below after your modifications.
CodeSelect all
} else {
message_die( GENERAL_MESSAGE, $lang['No_such_post'] );
}
if ( $userdata['session_logged_in'] == 0 ) {
message_die( GENERAL_MESSAGE, sprintf( $lang['Sorry_' . $is_auth_type ], $is_auth[ $is_auth_type . "_type"] ) );
}
// The user is not authed, if they're not logged in then redirect
// them, else show them an error message
if ( ! $is_auth[ $is_auth_type ] ) {
Save the file and Anonymous users will not be able to post a new topic or reply in the forums you have configured as such.
Hope this helps!