I have installed a plugin (https://de.wordpress.org/plugins/food-and-drink-menu/) for which I want to assign permissions to a normal "editor" user.
I found the plugin "User Role Editor" but there is no specific "permission-name" or "capability" for that specific plugin which I can simply assign (or remove) for specific user roles. So I'm wondering how to find out from the plugins source code which roles would be needed to fully access the plugin? Is there such a way?
I mean, in general, if a plugin uses e.g. custom post types, i.e. writes to the posts-table in SQL - is it at all possible, e.g. to give permission to the specific plugin but deny permission for "normal" posts in Wordpress? How is such a separation done?
Or is it possible to somehow tell Wordpress from "externally" (i.e. by custom function) that a specific user role may access the plugin with all its sub-menus / settings etc?
Thanks so much in advance
My current idea, based on the comments below, is: The plugin dashboard, settings etc are always called from the Admin Menu using a specific GET Parameter, e.g. so: /wp-admin/edit.php?post_type=fdm-menu&....
So I could go like this: Temporary capability for current_user_can()
And hook into "user_has_cap", whenever $_GET['post_type'] equals to "fdm-menu", just assign admin permissions. I know it's not super clean because in theory, the user could call EVERY admin URL / setting and just add the parameter to the URL, but it should suffice for many cases where I just want to avoid that the website owner destroys my setup page, but should simply be restricted to specific pages / posts etc...