I don’t know if there is a hook or another more elegant way to do that, the only solution I can offer you is to manually change the plugin code. Attention: This has to be redone after every update of the plugin!
You have to change the access rights which are limited to admins at line 790 of ajax_report function of wp-content/plugins/easy_appointsments/src/ajax.php from:
$this->validate_access_rights();
To this:
$this->validate_access_rights_editor();
Then you have to define this new function:
private function validate_access_rights_editor()
{
if (!current_user_can( 'edit_pages' )) {
header('HTTP/1.1 403 Forbidden');
die('You don\'t have rights for this action');
}
}
-
This reply was modified 6 years, 9 months ago by
Gerald.
-
This reply was modified 6 years, 9 months ago by
Gerald.