feat(authorization): add update flow checks
This commit is contained in:
@@ -11,6 +11,8 @@ const deleteStep = async (
|
||||
params: Params,
|
||||
context: Context
|
||||
) => {
|
||||
context.currentUser.can('update', 'Flow');
|
||||
|
||||
const step = await context.currentUser
|
||||
.$relatedQuery('steps')
|
||||
.withGraphFetched('flow')
|
||||
|
Reference in New Issue
Block a user