feat(authorization): add update flow checks

This commit is contained in:
Ali BARIN
2023-06-23 20:41:57 +00:00
parent 0d092b977f
commit 5d77f64e76
8 changed files with 16 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ const createStep = async (
params: Params,
context: Context
) => {
context.currentUser.can('update', 'Flow');
const { input } = params;
if (input.appKey && input.key) {