res.render('login.html');
res.end();
});
-
-Router.use(/^\/(?!session).*/, function(req, res, next) {
+//Should have a way of adding excluded routes to this via plugin registry, instead of hard coding
+Router.use(/^(?!.*(session|composer\/upload|composer\/update)).*/, function(req, res, next) {
var api_server = req.query['api_server'] || (req.protocol + '://' + configurationAPI.globalConfiguration.get().api_server);
if (req.session && req.session.loggedIn) {
next();
});
}
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;
}
}
// onClick={this.Store.update.bind(null, Account)}
ProjectManagementDashboard.contextTypes = {
- router: React.PropTypes.object
+ router: React.PropTypes.object,
+ userProfile: React.PropTypes.object
};
ProjectManagementDashboard.defaultProps = {