diff -ubBr --exclude=uploads --exclude=images --exclude=images_pcf --exclude=config.php --exclude=languages --exclude=settings.php Upload/member.php forum/member.php
--- Upload/member.php	2006-07-28 04:29:52.000000000 +0200
+++ forum/member.php	2006-07-19 14:30:39.000000000 +0200
@@ -1157,7 +1159,8 @@
 		$avatar = "";
 	}

-	if($memprofile['hideemail'] != "yes")
+//	if($memprofile['hideemail'] != "yes") // KK: aby admin widzial maile
+	if($mybb->usergroup['cancp'] == "yes" || $memprofile['hideemail'] != "yes")
 	{
 		eval("\$sendemail = \"".$templates->get("member_profile_email")."\";");
 	}
@@ -1451,7 +1465,8 @@
 		{
 			error($lang->error_invalidpmrecipient);
 		}
-		if($emailto['hideemail'] != "no")
+//KK:		if($emailto['hideemail'] != "no") // KK: aby admin widzial maile
+		if($mybb->usergroup['cancp'] != "yes" && $emailto['hideemail'] != "no")
 		{
 			error($lang->error_hideemail);
 		}
@@ -1480,7 +1495,8 @@
 	{
 		error($lang->error_invalidpmrecipient);
 	}
-	if($emailto['hideemail'] != "no")
+//KK:	if($emailto['hideemail'] != "no") // KK: aby admin widzial maile
+	if($mybb->usergroup['cancp'] != "yes" && $emailto['hideemail'] != "no")
 	{
 		error($lang->error_hideemail);
 	}

