Browse Source

feat(nocodb): allow kanban view to call dataList

pull/3818/head
Wing-Kam Wong 2 years ago
parent
commit
53d2c490fc
  1. 4
      packages/nocodb/src/lib/meta/api/publicApis/publicDataApis.ts

4
packages/nocodb/src/lib/meta/api/publicApis/publicDataApis.ts

@ -24,7 +24,9 @@ export async function dataList(req: Request, res: Response) {
const view = await View.getByUUID(req.params.sharedViewUuid);
if (!view) NcError.notFound('Not found');
if (view.type !== ViewTypes.GRID) NcError.notFound('Not found');
if (view.type !== ViewTypes.GRID && view.type !== ViewTypes.KANBAN) {
NcError.notFound('Not found');
}
if (view.password && view.password !== req.headers?.['xc-password']) {
return NcError.forbidden(ErrorMessages.INVALID_SHARED_VIEW_PASSWORD);

Loading…
Cancel
Save