Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking User capabilities to access parts of the backend
- This topic has 1 reply, 2 voices, and was last updated 6 years, 1 month ago by J. Davis.
- AuthorPosts
- October 6, 2018 at 12:30 pm #727283Christer FernstromParticipant
Hello,
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. DavisKeymasterHi Christer,
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.best regards,
J.Davis - AuthorPosts
- You must be logged in to reply to this topic.