Browse Source

Merge pull request #7401 from nocodb/nc-fix/sharedbase-user

Nc fix/sharedbase user
pull/7404/head
Raju Udava 11 months ago committed by GitHub
parent
commit
e7265b8f10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      packages/nocodb/src/services/public-metas.service.ts

13
packages/nocodb/src/services/public-metas.service.ts

@ -1,5 +1,10 @@
import { Injectable } from '@nestjs/common';
import { ErrorMessages, RelationTypes, UITypes } from 'nocodb-sdk';
import {
ErrorMessages,
isCreatedOrLastModifiedByCol,
RelationTypes,
UITypes,
} from 'nocodb-sdk';
import { isLinksOrLTAR } from 'nocodb-sdk';
import type { LinkToAnotherRecordColumn, LookupColumn } from '~/models';
import { NcError } from '~/helpers/catchError';
@ -69,7 +74,11 @@ export class PublicMetasService {
view.relatedMetas = relatedMetas;
if (view.model.columns.some((c) => c.uidt === UITypes.User)) {
if (
view.model.columns.some(
(c) => c.uidt === UITypes.User || isCreatedOrLastModifiedByCol(c),
)
) {
const baseUsers = await BaseUser.getUsersList({
base_id: view.model.base_id,
});

Loading…
Cancel
Save