TobjasR
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
@aetherscythe this is because the
$capabilityparameter of this plugin’s add_menu_page function (required for users to access it) is hard-coded asmanage-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 formanage_options) - replace
manage_optionswith 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.
Please @ me when it’s available, then I’ll go get this plugin 😀
Viewing 2 replies - 1 through 2 (of 2 total)