diff --git a/packages/nc-gui/components/tabs/auth/UserManagement.vue b/packages/nc-gui/components/tabs/auth/UserManagement.vue index fa73d2f080..48d3540dd2 100644 --- a/packages/nc-gui/components/tabs/auth/UserManagement.vue +++ b/packages/nc-gui/components/tabs/auth/UserManagement.vue @@ -76,6 +76,11 @@ const inviteUser = async (user: User) => { try { if (!project.value?.id) return + if (!user.roles) { + // mark it as editor by default + user.roles = 'editor' + } + await api.auth.projectUserAdd(project.value.id, user) // Successfully added user to project