• Resolved aetherscythe

    (@aetherscythe)


    My site has certain content contributors with the AuthorPlus role, which has capabilities assigned/customized using the popular User Role Editor.
    I cannot seem to find capabilities for the Import Social Events plugin.
    I was hoping to grant my AuthorPlus roles the ability to import FB events.
    Are the capabilities present within the plugin already or does this amount to a feature request?

Viewing 1 replies (of 1 total)
  • TobjasR

    (@reichsolutions)

    @aetherscythe this is because the $capability parameter of this plugin’s add_menu_page function (required for users to access it) is hard-coded as manage-options. So the User Role Editor cannot alter this capability. (Can only for dynamic / soft-coded capabilities.)

    workaround:

    • go to Plugins > Plugin-Editor
    • select Import Social Events from the drop-down menu
    • select/open file import-facebook-events/includes/class-import-facebook-events-admin.php from the side-bar
    • go to the public function add_menu_pages() function (or Ctrl+F search for manage_options)
    • replace manage_options with a custom capability, e.g. facebook_import
    • Click update file (or whatever it’s in English) to save the file
    • go to User Role Editor and add that custom capability (e.g. facebook_import) to the list via add new capability (or whatever it’s in English) button
    • now, you can assign the capability to the roles of your choice

    And yes, I think asking the developer for a soft-coded / dynamic capability is kind of a feature request.

Viewing 1 replies (of 1 total)
  • The topic ‘User Role / Capabilities to allow import by AuthorPlus role’ is closed to new replies.