feat(authorization): add delete flow checks

This commit is contained in:
Ali BARIN
2023-08-03 19:39:48 +02:00
parent ba5c038e3b
commit 63abc8a2c8
@@ -13,6 +13,8 @@ const deleteFlow = async (
params: Params,
context: Context
) => {
context.currentUser.can('delete', 'Flow');
const flow = await context.currentUser
.$relatedQuery('flows')
.findOne({