feat(authorization): add delete connection checks
This commit is contained in:
@@ -11,6 +11,8 @@ const deleteConnection = async (
|
||||
params: Params,
|
||||
context: Context
|
||||
) => {
|
||||
context.currentUser.can('delete', 'Connection');
|
||||
|
||||
await context.currentUser
|
||||
.$relatedQuery('connections')
|
||||
.delete()
|
||||
|
Reference in New Issue
Block a user