Home Forums Help User Roles who can access the admin.

Tagged: , ,

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

    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.



    Loading spinner

    Having gone through the code, its in relation to this specific set:
    $submenu[‘da-reactions’][30] = array(
    ‘ ‘ . __(‘Help’, ‘da-reactions’) . ”,
    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.


    Loading spinner

    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 53 years, 11 months ago by .
    Loading spinner
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.