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