fix: only display exports that are your own (#197)
This commit is contained in:
parent
f9e6158144
commit
3f8790ece1
1 changed files with 1 additions and 0 deletions
|
@ -124,6 +124,7 @@ async function handler(req: NextApiReq, res: NextApiRes) {
|
|||
const name = exp[i];
|
||||
const stats = await stat(`/tmp/${name}`);
|
||||
|
||||
if (Number(exp[i].split('_')[2]) !== user.id) continue;
|
||||
exports.push({ name, size: stats.size });
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue