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 1a679eb commit db19f45Copy full SHA for db19f45
src/routes/projectMembers/create.js
@@ -44,9 +44,9 @@ module.exports = [
44
err.status = 401;
45
return next(err);
46
}
47
- } else if (util.hasRoles(req, [USER_ROLE.MANAGER])) {
+ } else if (util.hasRoles(req, [USER_ROLE.MANAGER, USER_ROLE.CONNECT_ADMIN])) {
48
targetRole = PROJECT_MEMBER_ROLE.MANAGER;
49
- } else if (util.hasRoles(req, [USER_ROLE.COPILOT])) {
+ } else if (util.hasRoles(req, [USER_ROLE.COPILOT, USER_ROLE.CONNECT_ADMIN])) {
50
targetRole = PROJECT_MEMBER_ROLE.COPILOT;
51
} else {
52
const err = new Error('Only copilot or manager is able to call this endpoint');
0 commit comments