Home Forums Help User Roles who can access the admin.

Tagged: , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2923
    Chalkie
    Guest

    Hi There,
    I have checked in the code and see that users who have the permission ‘manage_options’ which is fantastic, but for users who do not have this permission still get access to a single DA Reactions button which takes them to the knowledge base here.

    How do i remove that or limit that to only those with ‘manage_options’ also?

    Its very annoying.

    Thanks

    Adam

    Loading spinner
    #2931
    Chalkie
    Guest

    Having gone through the code, its in relation to this specific set:
    $submenu[‘da-reactions’][30] = array(
    ‘ ‘ . __(‘Help’, ‘da-reactions’) . ”,
    ‘manage_options’,
    ‘https://www.da-reactions-plugin.com/knowledge-base/’,
    array(‘target’ => ‘_blank’)
    );

    Found in: da-reactions-premium/classes/DaReactions/Admin.php

    I am pretty sure it’s because the capability restriction is not being loaded correctly, I remove it completely so to fix the conflict, it has removed the ‘help’ part of the menu but we have it running exactly how we would like.

    If this could be fixed in an upcoming update it would be grand.

    Adam

    Loading spinner
    #2930
    Professore
    Keymaster

    Thank you for your feedback, that instruction is now nested inside a block like this:

    if (current_user_can( 'manage_options' )) { ....... }

    • This reply was modified 54 years, 3 months ago by .
    Loading spinner
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.