By default Ninja Forms is only accessible by an Administrator account. This is overwhelmingly the desired behavior but on some occasions you may want Ninja Forms to be able to be accessed by a lesser role within your account.

One situation where this occurs is when you are developing a site for a client and you give them only editor permissions so they don’t access things that could potentially break their site. You still want them to be able to create and manage their own forms but not give them full administrator access. Luckily that’s very easy to accomplish.

// Must use all three filters for this to work properly.
add_filter( 'ninja_forms_admin_parent_menu_capabilities', 'nf_subs_capabilities' ); // Parent Menu
add_filter( 'ninja_forms_admin_all_forms_capabilities', 'nf_subs_capabilities' ); // Forms Submenu
add_filter( 'ninja_forms_admin_submissions_capabilities', 'nf_subs_capabilities' ); // Submissions Submenu
function nf_subs_capabilities( $cap ) {
return 'edit_posts'; // EDIT: User Capability