Adapt rest api to field permissions (#13314)

Closes https://github.com/twentyhq/core-team-issues/issues/1217

We should only query and return the fields that are readable when using
the rest api.
This is behind a feature flag.
This commit is contained in:
Marie
2025-07-22 10:46:43 +02:00
committed by GitHub
parent f95573ab4c
commit c8753ae59e
81 changed files with 847 additions and 47 deletions

View File

@ -83,7 +83,8 @@ export const SignInUp = () => {
const title = useMemo(() => {
if (isDefined(workspaceInviteHash)) {
return `Join ${workspaceFromInviteHash?.displayName ?? ''} team`;
const workspaceName = workspaceFromInviteHash?.displayName ?? '';
return t`Join ${workspaceName} team`;
}
if (signInUpStep === SignInUpStep.WorkspaceSelection) {