Browse Source

Report form: delete button should depend on torrent_delete permission, not users_mod

spaghetti 7 years ago
parent
commit
b29d2336ae
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      sections/reportsv2/static.php
  2. 1
    1
      sections/reportsv2/takeresolve.php

+ 1
- 1
sections/reportsv2/static.php View File

@@ -619,7 +619,7 @@ if (count($Reports) === 0) {
619 619
 <?        } ?>
620 620
             </select>
621 621
             <span id="options<?=$ReportID?>">
622
-<?        if (check_perms('users_mod')) { ?>
622
+<?        if (check_perms('torrents_delete')) { ?>
623 623
               <span class="tooltip" title="Delete torrent?">
624 624
                 <label for="delete<?=$ReportID?>"><strong>Delete</strong></label>
625 625
                 <input type="checkbox" name="delete" id="delete<?=$ReportID?>" />

+ 1
- 1
sections/reportsv2/takeresolve.php View File

@@ -246,7 +246,7 @@ if ($DB->affected_rows() > 0 || !$Report) {
246 246
   }
247 247
 
248 248
   //Log and delete
249
-  if (isset($Escaped['delete']) && check_perms('users_mod')) {
249
+  if (isset($Escaped['delete']) && check_perms('torrents_delete')) {
250 250
     $DB->query("
251 251
       SELECT Username
252 252
       FROM users_main

Loading…
Cancel
Save