Skip to:
Content
Pages
Categories
Search
Top
Bottom

Manage Groups Menu Item


  • planetearthlings
    Participant

    @planetearthlings

    I have turned off the “Enable group creation for all users” but the “Manage Groups” menu item is still showing up for non-admin users. When they click on the menu items they see “No groups found You can’t manage any groups yet” but would be much better if the menu item was off. Any suggestion on how to have that menu item off for non-admin users?

Viewing 8 replies - 1 through 8 (of 8 total)

  • Pooja Sahgal
    Participant

    @poojasahgal

    This doesn’t seem to be a recognized issue. It’s possible that you disabled the option after creating the group, which allows group admins to still manage the group. If I’ve misunderstood anything, please let me know. A screen recording might be helpful.
    https://prnt.sc/vPxid179sUi3
    https://prnt.sc/8h792R_rS2dZ


    planetearthlings
    Participant

    @planetearthlings

    Hi Pooja…since I have “Enable group creation for all users” turned OFF I do NOT want to have the “Manage Groups” menu item to show up for non-Admin users, but as you can see with the attached screen capture when a non-Admin user clicks on the settings cog on the top right the “Manage Groups” menu item is still there. Trying to figure out how to hide that for anyone who isn’t an Admin. Thanks again!


    Pooja Sahgal
    Participant

    @poojasahgal

    So as an admin move to the particular group, edit the user, and change the role. Please refer to the attached:
    https://prnt.sc/AhFcHskYBAbn


    angelinajaade
    Participant

    @angelinajaade

    Conflict with membertype? User role/permissions pllugin?

    Admin panel > Users > Membertypes ?


    planetearthlings
    Participant

    @planetearthlings

    Sorry, seems like I’m not being clear. There isn’t any problem with roles. New members are set as subscribers and cannot create groups…which is what I want. The problem is that they are still seeing the “Manage Groups” menu item which they should NOT see since they don’t have permissions to manage groups.

    I just want to figure out how to turn off the “Manage Groups” menu item for non-Admin users.


    planetearthlings
    Participant

    @planetearthlings

    I have tried to find a solution both searching the web and using ChatGPT, but haven’t solved it. ChatGPT suggest adding the code below to the function.php file for the Theme replacing the “manage-group-slug” for the slug for the Manage Groups menu item. I’ve tried several options for that, but nothing has worked.

    function remove_manage_groups_menu() { if (!current_user_can(‘administrator’)) { // Use the menu slug of the ‘Manage Groups’ page remove_menu_page(‘manage-groups-slug’); } } add_action(‘admin_menu’, ‘remove_manage_groups_menu’);

    Any idea how I can find the correct slug?


    Pooja Sahgal
    Participant

    @poojasahgal

    Navigate to admin dashboard >> groups >> edit group >> manage members >> edit user and change the role from group admin to group member.
    Please refer to the attached:
    https://prnt.sc/AhFcHskYBAbn


    planetearthlings
    Participant

    @planetearthlings

    Hi Again @poojasahgal…ends up there was a bug in the theme coding which the theme developer has fixed. Now there is no “Manage Groups” link in the menu for those who aren’t admins. Thanks for trying to help. Really appreciate you taking the time. Best wishes.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar