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, params: Params,
context: Context context: Context
) => { ) => {
context.currentUser.can('delete', 'Connection');
await context.currentUser await context.currentUser
.$relatedQuery('connections') .$relatedQuery('connections')
.delete() .delete()