mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
Refactoring user permissions
This commit is contained in:
@@ -4,8 +4,7 @@ dbconn();
|
||||
require_once(get_langfile_path());
|
||||
require(get_langfile_path("",true));
|
||||
loggedinorreturn();
|
||||
if (get_user_class() < $askreseed_class)
|
||||
permissiondenied();
|
||||
user_can('askreseed', true);
|
||||
|
||||
$reseedid = intval($_GET["reseedid"] ?? 0);
|
||||
$res = sql_query("SELECT seeders, last_reseed FROM torrents WHERE id=".sqlesc($reseedid)." LIMIT 1") or sqlerr(__FILE__, __LINE__);
|
||||
|
||||
Reference in New Issue
Block a user