diff --git src/bp-groups/bp-groups-activity.php src/bp-groups/bp-groups-activity.php
index 1cafacd66..7f8ab0854 100644
--- src/bp-groups/bp-groups-activity.php
+++ src/bp-groups/bp-groups-activity.php
@@ -655,7 +655,8 @@ function bp_groups_filter_activity_user_can_delete( $retval, $activity ) {
 		return $retval;
 	}
 
-	if ( isset( $activity->component ) || 'groups' !== $activity->component ) {
+	// Fixed: changed logical OR to logical AND.
+	if ( isset( $activity->component ) && 'groups' !== $activity->component ) {
 		return $retval;
 	}
 
