Skip to content

Commit c08e0fe

Browse files
authored
Redo good change
1 parent 6e3902c commit c08e0fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,7 @@ func main() {
519519
}
520520

521521
if poll.CreatedBy != claims.UserInfo.Username {
522-
if slices.Contains(claims.UserInfo.Groups, "active_rtp") || slices.Contains(claims.UserInfo.Groups, "eboard") {
523-
} else {
522+
if !(slices.Contains(claims.UserInfo.Groups, "active_rtp") || slices.Contains(claims.UserInfo.Groups, "eboard")) {
524523
c.JSON(http.StatusForbidden, gin.H{"error": "You cannot end this poll."})
525524
return
526525
}

0 commit comments

Comments
 (0)