Support » Plugin: Instapage WordPress Plugin » User Permissions to Use Instapage Plugin

  • Hello,

    I recently set up Instapage for a client and found that I could not set user permissions to “Editor” – this is bad and opens up the site for bad things to happen. WHY do you have to be an Admin to use Instapage – editors are supposed to be able to add and publish pages. Please fix this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The same problem here, I tried to use User Role editor to add more capabilities to Editor, but it didn’t help. It’s nonsense that only admins can use your plugin.

    Same problem here – any fix?

    Tried adding my own capability for instapage_dashboard but doesnt work

    Found a plugin hack which will disappear after the next update, but short term it works. The below enables Instapage editing for anyone who can create posts.

    Open
    connectors/InstapageCmsPluginWPConnector.php

    Find line 73

    Change:

      public function currentUserCanManage() {
        return current_user_can('manage_options');
      }

    to:

      public function currentUserCanManage() {
        return current_user_can('create_posts');
      }

    Find Line 403

    Change:

        add_menu_page(
          __('Instapage: General settings'),
          __('Instapage'),
          'manage_options',
          'instapage_dashboard',
          array($this, 'loadPluginDashboard'),
          $iconSvg,
          30
       );

    to:

        add_menu_page(
          __('Instapage: General settings'),
          __('Instapage'),
          'create_posts',
          'instapage_dashboard',
          array($this, 'loadPluginDashboard'),
          $iconSvg,
          30
       );

    @bonkerz Thank you very much for this. I just need it again.
    But create_posts didn’t work, I had to change it to publish_pages for editors.
    You are awesome that you shared, this was really big help for me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘User Permissions to Use Instapage Plugin’ is closed to new replies.