feat(authorization): add update connection checks

This commit is contained in:
Ali BARIN
2023-07-18 21:06:26 +00:00
parent e8f2802ee0
commit aac1295c10
@@ -12,6 +12,8 @@ const testConnection = async (
params: Params,
context: Context
) => {
context.currentUser.can('update', 'Connection');
let connection = await context.currentUser
.$relatedQuery('connections')
.findOne({