Okay
  Public Ticket #3109227
Hide groups from non Admin or Teacher
Closed

Comments

  •  1
    LeaderSchool started the conversation

    We want to hide the groups page from students. We noticed that students can view all the groups and join to group whenever they want (even  if the group is private).

    Student 

    1) need to see only his group 

    2) and must not have the function to add or invite someone to this group

    Teacher/Moderator/Instructor

    1) needs to see only his groups  

    2) and have the function to add someone to group where he is a moderator

    We’ve changed the “WPLMS > Buddypress >Group directory View” to “Teachers only” but all the groups are still visible for other users (students). 

    1. How can we hide all groups from student? Student needs to see only groups in which he was added

    2. How can we prevent inviting other members to a group by students? 

  • [deleted] replied

    Please try adding this custom css in your wp-admin-> appearance-> customize -> custom css : 

    add_filter('vibebp_vars',function($d){

        $d['settings']['show_groups_dir'] = false;
        return $d;
    });


    and then edit group settings :https://prnt.sc/Wt67l1G6bdw-

     to disallow users to invite members .


  •   LeaderSchool replied privately
  • [deleted] replied

    Besides the settings of all the groups don't save if we change the appropriate setting. See video: https://youtu.be/-If5MrK2_Z0

    Yes its an issue .

    : https://trello.com/c/eObC8578


    Please refer : https://prnt.sc/Xuq_JYlkf24V

    I registered a new user and it does not shows any group to him since he is not member in any of theme . 

    The user must be member only then the group is showing OR if you are logged in as admin then it will show all the groups to admin .