Restricting Group Deletion to Super Admin
I am using buddypress as a closed and private social intranet. I allow users to create their own groups for planning, however, I have a core infrastructure of groups that are created by the super admin to reflect the organizational structure of our non profit. I need to allow members to admin these groups, but I do not want members (even group admin of these groups) to be able to delete a group that was initially created by the super admin.
I am imagining I need to add some logic that queries the group > admin.php file around the
if ( bp_is_group_admin_screen( ‘delete-group’ ) )
functionality but do not know exactly what I am doing beyond that. Any help would be appreciated that can assist me in restricting group deletion to only user 1 for all groups created by user 1 (super admin).
Let me know if I can clarify anything further. I will turn on email notification and jump on pretty quick to follow up.
Thanks in advance to anyone who can lend a hand!
- The topic ‘Restricting Group Deletion to Super Admin’ is closed to new replies.