user details page show email to self

This commit is contained in:
xiaomlove
2023-03-15 01:26:00 +08:00
parent 68445a3998
commit 96d6dc3854
+1 -1
View File
@@ -216,7 +216,7 @@ if (($user["privacy"] != "strong") OR (user_can('prfmanage')) || $CURUSER['id']
if ($where_tweak == "yes") {
tr_small($lang_userdetails['row_last_seen_location'], $user['page'], 1);
}
if (user_can('userprofile') OR $user["privacy"] == "low") {
if (user_can('userprofile') || $user['id'] == $CURUSER['id'] || $user["privacy"] == "low") {
tr_small($lang_userdetails['row_email'], "<a href=\"mailto:".$user['email']."\">".$user['email']."</a>", 1);
}
if (user_can('userprofile')) {