- This topic has 1 reply, 2 voices, and was last updated 3 years ago by J. Davis.
- October 6, 2018 at 12:30 pm #727283Christer FernstromParticipant
I would need woocommerce shop managers (i.e. users with capability manage_woocommerce) to have access to the main functions of the booking backend, but some require admin role, including viewing the booking calendar (!).
Noticing that the admin pages for the plugin inherit from MPHB\Admin\MenuPages\AbstractMenuPage and that the default capability is ‘manage_options’ (line 28 in abstract-menu-page.php) I patched this to ‘manage_woocommerce’ as a TEMPORARY solution. As a stable solution I would need a hook or a setting option, but I couldn’t find this. Is there such a hook or do you plan to add one?October 8, 2018 at 1:18 pm #727814J. DavisKeymaster
Yes, we have this feature in our to do list and we’ll keep your request in mind.
At the moment you can create custom user role and restrict access to certain parts of dashboard by means of third party plugins. For example you may duplicate Administrator Role and name it in your way. After that I’d recommend to use Adminimize plugin to restrict access.
- You must be logged in to reply to this topic.