Skip to content

Commit

Permalink
fix owner field validation
Browse files Browse the repository at this point in the history
Signed-off-by: Surya Sashank Nistala <[email protected]>
  • Loading branch information
eirsep committed Sep 29, 2022
1 parent 80ef2a2 commit 3eeb9b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class RestIndexMonitorAction : BaseRestHandler() {
}

private fun validateOwner(owner: String?) {
if (owner != null || owner != "alerting") {
if (owner != "alerting") {
throw IllegalArgumentException("Invalid owner field")
}
}
Expand Down

0 comments on commit 3eeb9b6

Please sign in to comment.