We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1907969 commit 57ab24bCopy full SHA for 57ab24b
1 file changed
main.go
@@ -520,8 +520,7 @@ func main() {
520
}
521
522
if poll.CreatedBy != claims.UserInfo.Username {
523
- if slices.Contains(claims.UserInfo.Groups, "active_rtp") || slices.Contains(claims.UserInfo.Groups, "eboard") {
524
- } else {
+ if !(slices.Contains(claims.UserInfo.Groups, "active_rtp") || slices.Contains(claims.UserInfo.Groups, "eboard")) {
525
c.JSON(http.StatusForbidden, gin.H{"error": "You cannot end this poll."})
526
return
527
0 commit comments