diff --git a/packages/builder/src/components/backend/DataTable/DataTable.svelte b/packages/builder/src/components/backend/DataTable/DataTable.svelte
index 3697adb7ac..a030adfcf6 100644
--- a/packages/builder/src/components/backend/DataTable/DataTable.svelte
+++ b/packages/builder/src/components/backend/DataTable/DataTable.svelte
@@ -57,10 +57,12 @@
>
{#if schema && Object.keys(schema).length > 0}
-
+ {#if !isUsersTable}
+
+ {/if}
{#if isUsersTable}
diff --git a/packages/builder/src/components/backend/DataTable/Table.svelte b/packages/builder/src/components/backend/DataTable/Table.svelte
index 40a5d1dbac..c23a6e3107 100644
--- a/packages/builder/src/components/backend/DataTable/Table.svelte
+++ b/packages/builder/src/components/backend/DataTable/Table.svelte
@@ -103,7 +103,7 @@
- {#if selectedRows.length > 0}
+ {#if !isUsersTable && selectedRows.length > 0}
{/if}
@@ -116,7 +116,7 @@
{customRenderers}
{rowCount}
bind:selectedRows
- allowSelectRows={allowEditing}
+ allowSelectRows={allowEditing && !isUsersTable}
allowEditRows={allowEditing}
allowEditColumns={allowEditing}
showAutoColumns={!hideAutocolumns}
diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditUser.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditUser.svelte
index b18e26fde4..62985d4285 100644
--- a/packages/builder/src/components/backend/DataTable/modals/CreateEditUser.svelte
+++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditUser.svelte
@@ -69,7 +69,7 @@
return false
}
- notifications.success("User saved successfully.")
+ notifications.success("User saved successfully")
rows.save(rowResponse)
}
@@ -88,10 +88,12 @@
diff --git a/packages/builder/src/constants/index.js b/packages/builder/src/constants/index.js
index 4d2f700ee7..aa1ccd729b 100644
--- a/packages/builder/src/constants/index.js
+++ b/packages/builder/src/constants/index.js
@@ -15,7 +15,14 @@ export const AppStatus = {
}
// fields on the user table that cannot be edited
-export const UNEDITABLE_USER_FIELDS = ["email", "password", "roleId", "status"]
+export const UNEDITABLE_USER_FIELDS = [
+ "email",
+ "password",
+ "roleId",
+ "status",
+ "firstName",
+ "lastName",
+]
export const LAYOUT_NAMES = {
MASTER: {