feat(authorization): add update connection checks

This commit is contained in:
Ali BARIN
2023-06-23 20:32:45 +00:00
parent e8f2802ee0
commit aac1295c10

View File

@@ -12,6 +12,8 @@ const testConnection = async (
params: Params, params: Params,
context: Context context: Context
) => { ) => {
context.currentUser.can('update', 'Connection');
let connection = await context.currentUser let connection = await context.currentUser
.$relatedQuery('connections') .$relatedQuery('connections')
.findOne({ .findOne({