We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50b2087 commit 2cebecaCopy full SHA for 2cebeca
src/routes/projects/create.js
@@ -66,7 +66,8 @@ module.exports = [
66
*/
67
(req, res, next) => {
68
const project = req.body.param;
69
- const userRole = util.hasRole(req, USER_ROLE.MANAGER)
+ // by default connect admin and managers joins projects as manager
70
+ const userRole = util.hasRoles(req, [USER_ROLE.CONNECT_ADMIN, USER_ROLE.MANAGER])
71
? PROJECT_MEMBER_ROLE.MANAGER
72
: PROJECT_MEMBER_ROLE.CUSTOMER;
73
// set defaults
@@ -136,6 +137,7 @@ module.exports = [
136
137
req.log.error(err);
138
return Promise.resolve();
139
});
140
+ // return Promise.resolve();
141
})
142
143
.then(() => {
0 commit comments