Skip to content

Commit ff7bb77

Browse files
committed
update allowed roles
1 parent d33094d commit ff7bb77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/permissions/copilotAndAbove.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import _ from 'lodash';
22
import util from '../util';
33
import {
44
USER_ROLE,
5-
PROJECT_MEMBER_MANAGER_ROLES,
5+
PROJECT_MEMBER_ROLE,
66
ADMIN_ROLES,
77
} from '../constants';
88
import models from '../models';
@@ -24,9 +24,9 @@ module.exports = req => new Promise((resolve, reject) => {
2424
}
2525

2626
const isManagerOrCopilot = util.hasRoles(req, [
27-
...PROJECT_MEMBER_MANAGER_ROLES,
27+
PROJECT_MEMBER_ROLE.MANAGER,
28+
PROJECT_MEMBER_ROLE.COPILOT,
2829
USER_ROLE.MANAGER,
29-
USER_ROLE.TOPCODER_ACCOUNT_MANAGER,
3030
USER_ROLE.COPILOT,
3131
USER_ROLE.COPILOT_MANAGER,
3232
]);

0 commit comments

Comments
 (0)