Apr 10th, 2012, 12:41 PM
I currently have about 8 admin users. Problem is with the "Your Account" page (/formtools/admin/account/). It shows the same info for all admins?
The function within /formtools/global/code/administrator.php > ft_get_admin_info() could be more specific?
Current query:
SELECT * FROM {$g_table_prefix}accounts
WHERE account_type = 'admin'
LIMIT 1
Suggested query:
$account_id = $_SESSION["ft"]["account"]["account_id"];
SELECT * FROM {$g_table_prefix}accounts
WHERE account_type = 'admin' AND account_id = $account_id
LIMIT 1
The function within /formtools/global/code/administrator.php > ft_get_admin_info() could be more specific?
Current query:
SELECT * FROM {$g_table_prefix}accounts
WHERE account_type = 'admin'
LIMIT 1
Suggested query:
$account_id = $_SESSION["ft"]["account"]["account_id"];
SELECT * FROM {$g_table_prefix}accounts
WHERE account_type = 'admin' AND account_id = $account_id
LIMIT 1