User roles management still missing
That would be very helpful. Currently I hardcoded it into the plugin (not update-proof)
Can you post/send the hooks, please?
Havent heard from you. Can you provide the code, please?
What do you mean by “quick fix”? 😀
2 weeks, not yet one reply
Okay there is finally your update but still lacking the code you were mentioning more than a month ago.
wow, what a big disappointment this is. 2 months. promises but no help in the end.
3 new updates since you said you would offer us the needed part of code.
Is this a joke to you?
Hi, sorry for waiting 🙁 we will release next version within next 24 hours with only that code improvement.
Best regards,
Nikola
Hi. I see a new version but not settings or info what to change.
ajax.php contains “manage_posts”,
admin.php contains a “user_capability_callback” but also no backend settings/infos
After searching the docs, there is a small info about the new filter but it’s totally incomplete.
What is the purpose of showing the menu slugs to special user roles when the ajax call is forbidden and so NO content at all is shown at each menu slug.
ajax.php line 1085: private function validate_access_rights()
This must be filtered and probably line 107, too.
Did you even test this before you release it?
After updating to the latest version and using the filter, none of the ajax calls work anymore
Error 400 response
Response is: 0
Example: wp-admin/admin-ajax.php?=&_wpnonce=2705a95683&action=ea_services
Thanks for fixing the ajax call but now everything is broken. When trying to access the top menu, it says “you are not allowed to view the page” This code is in the functions and worked before the latest update:
add_filter(‘easy-appointments-user-menu-capabilities’, ‘custom_capabilities’, 10, 2);
function custom_capabilities($default_capability, $menu_slug) {
$menus = array(‘easy_app_top_level’,’easy_app_locations’,’easy_app_services’,’easy_app_workers’,’easy_app_connections’,’easy_app_vacation’,’easy_app_reports’,’easy_app_new_reports’);
return ( current_user_can( ‘manage_woocommerce’ ) && in_array($menu_slug,$menus) ) ? ‘manage_woocommerce’ : $default_capability;
}
Same for the ajax call on a submenu page:
Error 400 response
Example: wp-admin/admin-ajax.php?=&_wpnonce=2705a95683&action=ea_services
Response is: 0
I really wonder if my approach is faulty or you do not test this at all?
Can you check this. please? Ajax Calls are not working with the new hook.
Hello?
Why even ask…
Please login or Register to submit your answer