Ensure you can only delete your own credentials
parent
605586ea1b
commit
eabb096e14
|
@ -37,6 +37,7 @@ export default async function handler(req, res) {
|
|||
await prisma.credential.delete({
|
||||
where: {
|
||||
id: id,
|
||||
userId: session.user.id,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue