Ensure you can only delete your own credentials

pull/1037/head^2
Bailey Pumfleet 2021-10-26 16:21:08 +01:00 committed by GitHub
parent 605586ea1b
commit eabb096e14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ export default async function handler(req, res) {
await prisma.credential.delete({
where: {
id: id,
userId: session.user.id,
},
});