Skip to content

Commit ef3fd16

Browse files
author
Maksym Mykhailenko
committed
fix: permission to get one invite
1 parent 60399df commit ef3fd16

File tree

1 file changed

+1
-1
lines changed
  • src/routes/projectMemberInvites

1 file changed

+1
-1
lines changed

src/routes/projectMemberInvites/get.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ module.exports = [
9393
// check there is an existing invite for the user with status PENDING
9494
// handle 404
9595
let errMsg;
96-
if (req.context.inviteType === 'all') {
96+
if (util.hasPermissionByReq(PERMISSION.READ_PROJECT_INVITE_NOT_OWN, req)) {
9797
errMsg = `invite not found for project id ${projectId}, inviteId ${inviteId}`;
9898
} else {
9999
errMsg = `invite not found for project id ${projectId}, inviteId ${inviteId}, ` +

0 commit comments

Comments
 (0)