I want to give a user with the Editor role, special access to control Ninja Forms without upgrading them to an Admin. What are the capabilities needed?
You’ll need their User Management plugin to grant the following access privileges to your Editor user. However, if you’re looking to assign specific access or roles to an individual user, it is not possible. I tried some custom code before but had no luck.
That appears to only be available via an extension
Looks like there are lots of places where manage_options (typically a capability only admins have) is checked, but there also seems to be a check on nf_edit_forms….
/** * Check if current user can manage forms * * @return bool */ function ninja_forms_ability_can_manage_forms() { if ( current_user_can( 'manage_options' ) || current_user_can( 'nf_edit_forms' ) ) { return true; }
return new \WP_Error( 'rest_forbidden', __( 'Sorry, you are not allowed to manage Ninja Forms.', 'ninja-forms' ) ); }
I gave my user this cap though and he still can’t edit forms.
This reply was modified 2 months, 1 week ago by HelgaTheViking.