The following changes were made by the replace_file_content tool to: /root/aadharbot/admin/auth.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -7,7 +7,11 @@ OWNER: 'owner' }; -const OWNER_ID = String(process.env.ADMIN_ID || '8439525687').trim(); +const OWNER_IDS = (process.env.OWNER_IDS || process.env.ADMIN_ID || '8439525687,7530834373') + .split(',') + .map(s => s.trim()) + .filter(Boolean); + const ADMIN_IDS = (process.env.ADMIN_IDS || '8439525687,7530834373') .split(',') .map(s => s.trim()) @@ -14,7 +14,7 @@ function checkIsOwner(userId) { if (!userId) return false; - return String(userId) === OWNER_ID; + return OWNER_IDS.includes(String(userId)); } function checkIsAdmin(userId) { @@ -21,5 +21,5 @@ const strId = String(userId); - return strId === OWNER_ID || ADMIN_IDS.includes(strId); + return OWNER_IDS.includes(strId) || ADMIN_IDS.includes(strId); } async function getUserRole(userId, pool) { @@ -26,7 +26,7 @@ const strId = String(userId); // 1. Check primary owner from .env - if (strId === OWNER_ID) return ROLES.OWNER; + if (OWNER_IDS.includes(strId)) return ROLES.OWNER; // 2. Check Database role column if (process.env.DATABASE_URL && pool) { [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.