• Resolved tommcgee

    (@tommcgee)


    This plugin does something that I haven’t found in another mapping plugin, that is the ability to import data from multiple maps and superimpose lines, areas and locations into one.

    Unfortunately it only works if the user has the actual “administrator” role. But that’s not good because I don’t want all of the users to have the option to change theme, theme options, etc. etc.

    What’s the best path for making this usable by, say, a site “editor” or “contributor”?

Viewing 1 replies (of 1 total)
  • Thread Starter tommcgee

    (@tommcgee)

    Following up on my own topic, I found that the ‘administrator’ role is hard-coded in. Since this one hasn’t been updated in many years, I don’t expect any future update to add flexibility. For my own use I cloned the plugin and modified the lib/controller.php file. Lines 5-28 were all in the form of

    	add_submenu_page( MF_PLUGIN_NAME, 'Social Share', '<i class="fa fa-share"></i> Social Share', 'administrator', 'social-share', 'social_share' );

    I changed each of them to:

    	add_submenu_page( MF_PLUGIN_NAME, 'Social Share', '<i class="fa fa-share"></i> Social Share', 'editor', 'social-share', 'social_share' );

    With that, everything for site editors worked as it should. Of course, you can change that role or privilege to whatever, but this was enough to solve my own specific problem.

Viewing 1 replies (of 1 total)
  • The topic ‘Need to be Administrator?’ is closed to new replies.