Browse Source

fix(nc-gui): mark it as editor by default

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
95efae4e78
  1. 5
      packages/nc-gui/components/tabs/auth/UserManagement.vue

5
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

Loading…
Cancel
Save