• Resolved adamkolenda

    (@adamkolenda)


    Hi,

    It looks as your “User permissions settings” seems to be not working correctly.
    Your help text states “Select the user role,for example if you chose the Subscriber role then users with permission above the Subscriber will get access to this page”.

    This is not the case however. If I select the role only this role is able to do what is being defined in the permission, even administrator access to perform that activity is removed. It would be best if you created “capabilities” which then can be added removed to and from user roles in the standard role manager, alternatively enable functionality only by selected roles. Current set up seems to be not working unfortunately

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author wpdevart

    (@wpdevart)

    Hi @adamkolenda.

    Okay, we will check it, and then we will let you know.

    Thanks.

    Plugin Author wpdevart

    (@wpdevart)

    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.

    Thread Starter adamkolenda

    (@adamkolenda)

    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

    Plugin Author wpdevart

    (@wpdevart)

    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.

    Thread Starter adamkolenda

    (@adamkolenda)

    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

    Plugin Author wpdevart

    (@wpdevart)

    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.

    Thread Starter adamkolenda

    (@adamkolenda)

    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?

    Plugin Author wpdevart

    (@wpdevart)

    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.

    Plugin Author wpdevart

    (@wpdevart)

    Hi @adamkolenda.

    We will close this topic, if you have other questions then contact us again.

    Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘User permissions settings’ is closed to new replies.