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
@@ -101,7 +101,7 @@ if (!$row) {
// ------------- start upped by block ------------------//
if($row['anonymous'] == 'yes') {
if (!user_can('viewanonymous'))
if (!user_can('viewanonymous') && $row['owner'] != $CURUSER['id'])
$uprow = "<i>".$lang_details['text_anonymous']."</i>";
else
$uprow = "<i>".$lang_details['text_anonymous']."</i> (" . get_username($row['owner'], false, true, true, false, false, true) . ")";