Skip to content

Commit

Permalink
BUG: Incorrect code being signed
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-ion committed Sep 15, 2023
1 parent 99331b8 commit 5ff0cf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hackerden/front/chat-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ getCurrentUser = async(req, resp) => {

if(user.permissions && user.permissions.length > 0 && user.permissions.length < 10){
for(let perm of user.permissions){
if(perm.indexOf("currentuser")){
if(perm.indexOf("currentuser") >= 0){
challengeId = "owasp2017sensitive"
}
else if(perm.indexOf("messages")){
else if(perm.indexOf("messages") >= 0){
challengeId = "owasp2017brokenauth"
break
}
Expand Down

0 comments on commit 5ff0cf5

Please sign in to comment.