mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 06:36:45 +00:00
fix(nc-gui): mark it as editor by default
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user