Skip to content

Commit 70c4c14

Browse files
Modify group access error message
1 parent 0175120 commit 70c4c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/ChallengeService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function filterChallengesByGroupsAccess (currentUser, challenges) {
4545
async function ensureAccessibleByGroupsAccess (currentUser, challenge) {
4646
const filtered = await filterChallengesByGroupsAccess(currentUser, [challenge])
4747
if (filtered.length === 0) {
48-
throw new errors.ForbiddenError('You are not allowed to access the challenge.')
48+
throw new errors.ForbiddenError(`You don't have access to this group!`)
4949
}
5050
}
5151

0 commit comments

Comments
 (0)