Skip to content

Commit 1bcb591

Browse files
committed
rip my code it got hit by a bazooka
1 parent f296f34 commit 1bcb591

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

eboard.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var OPTIONS = []string{"Pass", "Fail", "Abstain"}
1616

1717
func HandleGetEboardVote(c *gin.Context) {
1818
user := GetUserData(c)
19-
if IsEboard(user) {
19+
if !IsEboard(user) {
2020
c.JSON(http.StatusUnauthorized, gin.H{"error": "You need to be E-Board to access this page"})
2121
return
2222
}
@@ -34,7 +34,7 @@ func HandleGetEboardVote(c *gin.Context) {
3434

3535
func HandlePostEboardVote(c *gin.Context) {
3636
user := GetUserData(c)
37-
if IsEboard(user) {
37+
if !IsEboard(user) {
3838
c.JSON(http.StatusUnauthorized, gin.H{"error": "You need to be E-Board to access this page"})
3939
return
4040
}

0 commit comments

Comments
 (0)