mirror of
https://github.com/Amperra-Group/xcs.git
synced 2025-08-16 13:22:14 -06:00
pmo pmo pmo
This commit is contained in:
parent
3b3ae08985
commit
7e55d74c19
|
@ -18,7 +18,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
|||
const users = db.collection('users');
|
||||
const invitations = db.collection('invitations');
|
||||
const user = await users.findOne({ id: uid });
|
||||
|
||||
|
||||
if (!user) return res.status(404).json({ message: 'User not found.' });
|
||||
if (!user.platform.staff) return res.status(403).json({ message: 'Forbidden.' });
|
||||
|
||||
|
|
Loading…
Reference in a new issue