Hi @adamkolenda.
Okay, we will check it, and then we will let you know.
Thanks.
Hi @adamkolenda.
We checked the admin roles and everything works fine from our side.
The “Can edit other users Charts” means the following, if user X with the Subscriber role creates a chart, then user Y can’t view/edit it. The only user role that can view/edit the chart is the admin.
Can you tell us exactly what doesn’t work correctly?
Thanks.
The role management does not seems to be working at all.
At the moment when I define the role in the role management tab in your plugin only users in this particular role are able to create charts no other roles. So for example as administrator if I provide access to subscribers but then ability to create charts are removed from my profile as administrator and provided only to subscriber role so permission management process do not work
Hi @adamkolenda.
Our developers checked again the user permissions again several times. It works fine, as we programmed.
Maybe it’s something that comes from your side.
Can you test it on another website with WordPress standard theme?
Thanks.
Hi @wpdevart,
I’ve tested this on 3 different sites with different themes and on all have the same problem.
If there is no way to fix it, could you please release snipped so that I can hide the wpdevart section on the admin side bar to everyone apart from administrators.
Thanks
Hi @adamkolenda.
Here is the code. Find and edit this file – organization-chart\admin\admin.php
On lines 46 and 47 you will see such code –
$featured_page = add_submenu_page("wpda_chart_tree_page", "Featured Plugins", "Featured Plugins", 'read', "wpda_chart_featured_plugins", array($this, 'featured_plugins'));
$hire_expert = add_submenu_page("wpda_chart_tree_page", 'Hire an Expert', '<span style="color:#00ff66" >Hire an Expert</span>', 'read', "wpda_chart_hire_expert", array($this, 'hire_expert'));
In this code, you need to change the ‘read’ and type instead of it ‘manage_options’. So here is the code that you need to replace –
$featured_page = add_submenu_page("wpda_chart_tree_page", "Featured Plugins", "Featured Plugins", 'manage_options', "wpda_chart_featured_plugins", array($this, 'featured_plugins'));
$hire_expert = add_submenu_page("wpda_chart_tree_page", 'Hire an Expert', '<span style="color:#00ff66" >Hire an Expert</span>', 'manage_options', "wpda_chart_hire_expert", array($this, 'hire_expert'));
This should work.
Thanks.
Thanks,
Just to confirm if this is a fix for the issue I’m facing before you release new update or is this workaround to hide the plugin from the admin menu for none administrators?
Hi @adamkolenda.
You can manually change our plugin version(for example, set it 20.0) from the main file – wpdevart_chart.php, so you will not lose changes once we update our plugin.
Thanks.
Hi @adamkolenda.
We will close this topic, if you have other questions then contact us again.
Thanks.