MDL-30106 forum: Added group permissions check in get_posts ws