feat(authorization): add update connection checks

This commit is contained in:
Ali BARIN
2023-08-03 19:39:48 +02:00
parent c37c70446d
commit 5176b8c322
@@ -12,6 +12,8 @@ const testConnection = async (
params: Params,
context: Context
) => {
context.currentUser.can('update', 'Connection');
let connection = await context.currentUser
.$relatedQuery('connections')
.findOne({