Update user side panel to account for new role metadata
This commit is contained in:
parent
7e6f1407fe
commit
aa75fca377
|
@ -48,7 +48,8 @@
|
|||
let options = roles
|
||||
.filter(role => allowedRoles.includes(role._id))
|
||||
.map(role => ({
|
||||
name: enrichLabel(role.name),
|
||||
color: role.color,
|
||||
name: enrichLabel(role.displayName),
|
||||
_id: role._id,
|
||||
}))
|
||||
if (allowedRoles.includes(Constants.Roles.CREATOR)) {
|
||||
|
@ -63,7 +64,8 @@
|
|||
|
||||
// Allow all core roles
|
||||
let options = roles.map(role => ({
|
||||
name: enrichLabel(role.name),
|
||||
color: role.color,
|
||||
name: enrichLabel(role.displayName),
|
||||
_id: role._id,
|
||||
}))
|
||||
|
||||
|
|
Loading…
Reference in New Issue