OK so if I had looked a few lines down, I would have seen that there’s a filter right below that, you can set your defaults like this:
function custom_bp_docs_permissions($doc_settings, $doc_id, $default_settings) {
$custom_default_settings = array(
'read' => 'group-members',
'edit' => 'group-members',
'read_comments' => 'group-members',
'post_comments' => 'group-members',
'view_history' => 'group-members',
'manage' => 'group-members',
);
if($doc_id == 0 || $doc_settings == $default_settings) {
return $custom_default_settings;
} else {
return $doc_settings;
}
}
add_filter('bp_docs_get_doc_settings',custom_bp_docs_permissions,10,3);
Hope this helps someone else out there…