feat(authorization): add delete flow checks

This commit is contained in:
Ali BARIN
2023-06-23 21:26:46 +00:00
parent af29dc9c3f
commit 75b3730a70

View File

@@ -13,6 +13,8 @@ const deleteFlow = async (
params: Params,
context: Context
) => {
context.currentUser.can('delete', 'Flow');
const flow = await context.currentUser
.$relatedQuery('flows')
.findOne({