change torrent-delete permission judge

This commit is contained in:
xiaomlove
2024-03-03 00:49:18 +08:00
parent e653fdac6d
commit b32bdc137f
6 changed files with 122 additions and 77 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ $row = mysql_fetch_array($res);
if (!$row)
die();
if (!user_can('torrentmanage'))
if (!user_can('torrentmanage') || !user_can('torrent-delete'))
bark($lang_fastdelete['text_no_permission']);
if (!$sure)