From 517ad4dc97f72d99480555edcccdd91dfba3dfd6 Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Sat, 22 Jul 2023 22:48:10 +0200 Subject: [PATCH] feat(ui): add roles to UI --- db/bolt/migration_2_8_91.go | 2 +- web/src/views/project/Team.vue | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/db/bolt/migration_2_8_91.go b/db/bolt/migration_2_8_91.go index ef9be2e8..b477be44 100644 --- a/db/bolt/migration_2_8_91.go +++ b/db/bolt/migration_2_8_91.go @@ -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) diff --git a/web/src/views/project/Team.vue b/web/src/views/project/Team.vue index f43948ed..6aff2bf8 100644 --- a/web/src/views/project/Team.vue +++ b/web/src/views/project/Team.vue @@ -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', }], }; },