Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
project['project-config']['user'].map(function(user) {
if (user['user-name'] == username) {
project_list_for_user.push(project);
- user.role.map(function(role) {
+ user['rw-project-mano:mano-role'] && user['rw-project-mano:mano-role'].map(function(role) {
if(role.role.indexOf('rw-project-mano:lcm') > -1) {
isLCM = true;
}
<tbody>
{
state.projectUsers.map((u,i)=> {
- let userRoles = u.role && u.role.map((r) => {
- return r.role;
- }) || [];
+ let userRoles = []
+ u.role && u.role.map((r) => {
+ userRoles.push(r.role);
+ });
+ u["rw-project-mano:mano-role"] && u["rw-project-mano:mano-role"].map((r) => {
+ userRoles.push(r.role);
+ });
return (
<tr key={i}>
{!state.isReadOnly ? <td><span
+
+
/*
*
* Copyright 2016 RIFT.IO Inc