How to modify capabilities shown in the field "Only visible to..." dropdown

Since Version 1.0.1

GravityView only shows a few roles by default. If you want to add more, here's how:

add_filter( 'gravityview_field_visibility_caps', 'modify_gravityview_field_visibility_caps');
function modify_gravityview_field_visibility_caps($caps) {
    // Add your capabilities here.
    $caps['edit_dashboard'] = 'Edit Dashboard';
    return $caps;
}