Skip to content

Commit

Permalink
Fix is_reviewer_valid check
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Jun 20, 2023
1 parent 8ddc917 commit 3e55a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egress_backend/lambda/egress_api/update_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def is_reviewer_valid(
request_id: str, reviewer_usergroups: List[str], egress_request: Any
):
current_reviewer_group = egress_request["Items"][0]["current_reviewer_group"]
if current_reviewer_group in reviewer_usergroups:
if current_reviewer_group not in reviewer_usergroups:
logger.error(
"Egress request: %s found but reviewer is not valid and not found in the current reviewer group: %s",
request_id,
Expand Down

0 comments on commit 3e55a68

Please sign in to comment.