mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-25 04:27:22 +08:00
change torrent-delete permission judge
This commit is contained in:
+1
-1
@@ -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");
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user