• Resolved BenR

    (@brajno)


    Hi,
    Is it possible to allow roles other than admin to edit the plugin settings?

    Thanks,
    Ben

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @brajno

    Our plugin only allows you to choose user roles which can manage (issue, edit, delete) invoices. Acess to plugin settings is restricted for Administrator user role only.

    Only users with roles Administrator and Shop manager can access and edit invoices by default. If you want to let other users edit invoices, add their roles in this field. The administrator always has unlimited permissions.
    https://www.wpdesk.net/docs/flexible-invoices-wordpress-docs/#Roles

    If you would like to add access to editing plugin’s settings to different users, you need to grant him manage_options capability. If so, the user will also have an access to other WordPress Administration Screens. you can use a third party plugin like User Role Editor to do so.

    I’ve added your suggestions to our “to do” list where we are taking the new features ideas from and we will let you know as soon as the proper update containing these changes is released.

    Thread Starter BenR

    (@brajno)

    Wow, that was fast ??

    I was trying to hack it with something like this, without success:

    add_filter( 'option_page_capability_wpdesk_helper_settings', function( $capability ){
      return 'edit_flexible_invoices';
    } );

    In the end I went with this approach:
    https://wordpress.stackexchange.com/questions/156045/how-can-i-modify-the-capability-needed-to-access-a-plugins-options/156073#156073

    Thank you. This would be a great feature.

    Kind Regards,
    Ben

    Plugin Support przemyslawrosa

    (@przemyslawrosa)

    Thanks for leting us know! ??

    For now, I’m marking the thread as resolved. We will let you know as soon as the update with this changes is released.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Permission to edit settings’ is closed to new replies.