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 60399df commit ef3fd16Copy full SHA for ef3fd16
src/routes/projectMemberInvites/get.js
@@ -93,7 +93,7 @@ module.exports = [
93
// check there is an existing invite for the user with status PENDING
94
// handle 404
95
let errMsg;
96
- if (req.context.inviteType === 'all') {
+ if (util.hasPermissionByReq(PERMISSION.READ_PROJECT_INVITE_NOT_OWN, req)) {
97
errMsg = `invite not found for project id ${projectId}, inviteId ${inviteId}`;
98
} else {
99
errMsg = `invite not found for project id ${projectId}, inviteId ${inviteId}, ` +
0 commit comments