fix: Specify uncategorized flows by using not-owned folders
This commit is contained in:
@@ -3,8 +3,13 @@ import paginateRest from '../../../../helpers/pagination-rest.js';
|
||||
|
||||
export default async (request, response) => {
|
||||
await request.currentUser.hasFolderAccess(request.body.folderId);
|
||||
const currentUserFolderIds = await request.currentUser.getFolderIds();
|
||||
|
||||
const flowsQuery = request.currentUser.getFlows(
|
||||
flowParams(request),
|
||||
currentUserFolderIds
|
||||
);
|
||||
|
||||
const flowsQuery = request.currentUser.getFlows(flowParams(request));
|
||||
const flows = await paginateRest(flowsQuery, request.query.page);
|
||||
|
||||
renderObject(response, flows);
|
||||
|
||||
Reference in New Issue
Block a user