Skip to content

Commit

Permalink
feat(ui): add roles to UI
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Jul 22, 2023
1 parent 0b81623 commit 517ad4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion db/bolt/migration_2_8_91.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions web/src/views/project/Team.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}],
};
},
Expand Down

0 comments on commit 517ad4d

Please sign in to comment.