});
}
cleanUsers(projectUsers, projectName) {
+ let self = this;
let cleanUsers = [];
//Remove null values from role
projectUsers.map((u) => {
u.role = cleanRoles;
u["rw-project-mano:mano-role"] = u["rw-project-mano:mano-role"] || [];
u["rw-project-mano:mano-role"] = u["rw-project-mano:mano-role"].concat(cleanManoRoles);
- cleanUsers.push(u);
+ if (u['user-name'] != self.context.userProfile.userId) {
+ cleanUsers.push(u);
+ }
});
return cleanUsers;
}
</FormSection>
<FormSection title="USER ROLES" className="userTable">
- <table>
+ <table className="projectTable">
<thead>
<tr>
{!state.isReadOnly ? <td></td> : null}
}
// onClick={this.Store.update.bind(null, Account)}
ProjectManagementDashboard.contextTypes = {
- router: React.PropTypes.object
+ router: React.PropTypes.object,
+ userProfile: React.PropTypes.object
};
ProjectManagementDashboard.defaultProps = {