We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89e2651 commit ea57759Copy full SHA for ea57759
src/services/ResourceService.js
@@ -85,7 +85,7 @@ async function getResources (currentUser, challengeId, roleId, memberId, memberH
85
hasFullAccess = false
86
}
87
88
- if (memberId && memberId !== currentUser.userId) {
+ if (memberId && _.toString(memberId) !== _.toString(currentUser.userId)) {
89
throw new errors.ForbiddenError('You are not allowed to perform this operation!')
90
91
if (memberHandle && memberHandle !== currentUser.handle) {
0 commit comments