feat(authorization): add delete connection checks

This commit is contained in:
Ali BARIN
2023-08-03 19:39:48 +02:00
parent 4086fad867
commit a6669415f5
@@ -11,6 +11,8 @@ const deleteConnection = async (
params: Params,
context: Context
) => {
context.currentUser.can('delete', 'Connection');
await context.currentUser
.$relatedQuery('connections')
.delete()