feat(ui): add roles to UI

This commit is contained in:
Denis Gukov 2023-07-22 22:48:10 +02:00
parent 0b81623b09
commit 517ad4dc97
2 changed files with 7 additions and 1 deletions

View File

@ -25,7 +25,7 @@ func (d migration_2_8_91) Apply() (err error) {
if userData["admin"] == true {
userData["role"] = "owner"
} else {
userData["role"] = "task_runner"
userData["role"] = "manager"
}
delete(userData, "admin")
err = d.setObject(projectID, "user", userId, userData)

View File

@ -79,9 +79,15 @@ export default {
roles: [{
slug: 'owner',
title: 'Owner',
}, {
slug: 'manager',
title: 'Manger',
}, {
slug: 'task_runner',
title: 'Task Runner',
}, {
slug: 'guest',
title: 'Guest',
}],
};
},