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
@@ -227,7 +227,7 @@ else {
print("<tr><td class=\"toolbox\" colspan=\"2\" align=\"center\"><input id=\"qr\" type=\"submit\" value=\"".$lang_edit['submit_edit_it']."\" /> <input type=\"reset\" value=\"".$lang_edit['submit_revert_changes']."\" /></td></tr>\n");
print("</table>\n");
print("</form>\n");
if (user_can('torrent-delete')) {
if (user_can('torrent-delete') && user_can('torrentmanage')) {
print("<br /><br />");
print("<form method=\"post\" action=\"delete.php\">\n");
print("<input type=\"hidden\" name=\"id\" value=\"$id\" />\n");