Our solution includes creating a new role called 'Client' that's based upon Editor. This user has access to Gravity Forms except for the Settings area.
Add to functions.php:
// add client role that has access to Gravity Forms (except for settings)
// this role is an addition of the Editor role
if (!get_role('client'))
{
$caps = get_role('editor')->capabilities;
$caps = array_merge($caps, array(
'gravityforms_create_form' => true,
'gravityforms_delete_entries' => true,
'gravityforms_delete_forms' => true,
'gravityforms_edit_entries' => true,
'gravityforms_edit_entry_notes' => true,
'gravityforms_edit_forms' => true,
'gravityforms_edit_settings' => false,
'gravityforms_export_entries' => true,
'gravityforms_view_entries' => true,
'gravityforms_view_entry_notes' => true
));
add_role('client','Client', $caps );
}
Posted 14 years ago on Monday October 11, 2010 |
Permalink