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