mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update gen_passkey.php
This commit is contained in:
parent
754a8b322f
commit
0c9ea10c9a
@ -4,7 +4,10 @@ if (!defined('IN_AJAX')) die(basename(__FILE__));
|
||||
|
||||
global $userdata, $lang;
|
||||
|
||||
$req_uid = (int) $this->request['user_id'];
|
||||
if (!$req_uid = (int) $this->request['user_id'])
|
||||
{
|
||||
$this->ajax_die($lang['NO_USER_ID_SPECIFIED']);
|
||||
}
|
||||
|
||||
if ($req_uid == $userdata['user_id'] || IS_ADMIN)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user