mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
feat(ui): add roles to UI
This commit is contained in:
parent
0b81623b09
commit
517ad4dc97
@ -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)
|
||||
|
@ -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',
|
||||
}],
|
||||
};
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user