fix user that has permission can not see uploader on torrent table

This commit is contained in:
xiaomlove
2022-10-12 01:42:43 +08:00
parent 0bdfc73528
commit 46aaf2d7b7
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -3701,7 +3701,7 @@ foreach ($rows as $row)
if (
$row["anonymous"] == "yes"
&& (user_can('torrentmanage') || (isset($row['owner']) && $row['owner'] == $CURUSER['id']))
&& (user_can('viewanonymous') || (isset($row['owner']) && $row['owner'] == $CURUSER['id']))
) {
print("<td class=\"rowfollow\" align=\"center\"><i>".$lang_functions['text_anonymous']."</i><br />".(isset($row["owner"]) ? "(" . get_username($row["owner"]) .")" : "<i>".$lang_functions['text_orphaned']."</i>") . "</td>\n");
}