mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
docs: Stop assuming the user's gender in code comments (no-changelog) (#6015)
This commit is contained in:
committed by
GitHub
parent
9817a15da4
commit
c87262a312
@@ -23,7 +23,7 @@ export = {
|
||||
const sharedWorkflowsIds = await getSharedWorkflowIds(req.user);
|
||||
|
||||
// user does not have workflows hence no executions
|
||||
// or the execution he is trying to access belongs to a workflow he does not own
|
||||
// or the execution they are trying to access belongs to a workflow they do not own
|
||||
if (!sharedWorkflowsIds.length) {
|
||||
return res.status(404).json({ message: 'Not Found' });
|
||||
}
|
||||
@@ -52,7 +52,7 @@ export = {
|
||||
const sharedWorkflowsIds = await getSharedWorkflowIds(req.user);
|
||||
|
||||
// user does not have workflows hence no executions
|
||||
// or the execution he is trying to access belongs to a workflow he does not own
|
||||
// or the execution they are trying to access belongs to a workflow they do not own
|
||||
if (!sharedWorkflowsIds.length) {
|
||||
return res.status(404).json({ message: 'Not Found' });
|
||||
}
|
||||
@@ -90,7 +90,7 @@ export = {
|
||||
const sharedWorkflowsIds = await getSharedWorkflowIds(req.user);
|
||||
|
||||
// user does not have workflows hence no executions
|
||||
// or the execution he is trying to access belongs to a workflow he does not own
|
||||
// or the execution they are trying to access belongs to a workflow they do not own
|
||||
if (!sharedWorkflowsIds.length || (workflowId && !sharedWorkflowsIds.includes(workflowId))) {
|
||||
return res.status(200).json({ data: [], nextCursor: null });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user