buddydev / blog-categories-for-groups

BuddyPress Blog Categories for groups Plugin
http://buddydev.com/plugins/blog-categories-for-groups/
12 stars 6 forks source link

Normal group Members are not allowed to post #7

Closed sbrajesh closed 5 years ago

sbrajesh commented 13 years ago

The normal Group Members are not allowed to post. I have changed this in blog-categories-for-groups/blog-categories-for-groups.php at line 223 function bcg_current_user_can_post()

I just added a " || groups_is_user_member($user_id, $group_id)".

function bcg_current_user_can_post(){
global $bp;
$user_id=$bp->loggedin_user->id;
$group_id=$bp->groups->current_group->id;
$can_post=is_user_logged_in()&&(groups_is_user_admin($user_id, $group_id)||groups_is_user_mod($user_id, $group_id) || groups_is_user_member($user_id, $group_id));
return apply_filters("bcg_current_user_can_post",$can_post,$group_id,$user_id);
}

reported by @ Sven

It's a bug with the front end post editor.