Skip to content

Commit

Permalink
Merge pull request bigbluebutton#20807 from paultrudel/api-internal-e…
Browse files Browse the repository at this point in the history
…rror-fix

fix(api): Remove old enter endpoint validation logic
  • Loading branch information
gustavotrott authored Jul 31, 2024
2 parents c4201e0 + 01fb610 commit 4af042d
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1869,17 +1869,6 @@ class ApiController {
log.error violation.getValue()
}

if(apiCall == ValidationService.ApiCall.ENTER) {
//Check if error exist following an order (to avoid showing guestDeny when the meeting doesn't even exist)
String[] enterConstraintsKeys = new String[] {"missingSession","meetingForciblyEnded","notFound","guestDeny"}
for (String constraintKey : enterConstraintsKeys) {
if(violations.containsKey(constraintKey)) {
response = new AbstractMap.SimpleEntry<String, String>(constraintKey, violations.get(constraintKey))
break
}
}
}

if(response == null) {
for(Map.Entry<String, String> violation: violations.entrySet()) {
response = new AbstractMap.SimpleEntry<String, String>(violation.getKey(), violation.getValue())
Expand Down

0 comments on commit 4af042d

Please sign in to comment.