aboutsummaryrefslogtreecommitdiff
path: root/backend/handlers/record.go
diff options
context:
space:
mode:
authorWolfboy248 <georgejvindkarlsen@gmail.com>2024-10-28 11:43:38 +0100
committerWolfboy248 <georgejvindkarlsen@gmail.com>2024-10-28 11:43:38 +0100
commit6fdc20a4db98531545badedf983a81a05f0ea450 (patch)
tree69d314fd8fad33cc12c676617b5bc1c6ff066cce /backend/handlers/record.go
parentrefactor: uploadrundialog (diff)
parentbackend: fix user completion count (diff)
downloadlphub-6fdc20a4db98531545badedf983a81a05f0ea450.tar.gz
lphub-6fdc20a4db98531545badedf983a81a05f0ea450.tar.bz2
lphub-6fdc20a4db98531545badedf983a81a05f0ea450.zip
Merge branch 'typescript' of https://github.com/pektezol/LeastPortalsHub into typescript
Diffstat (limited to 'backend/handlers/record.go')
-rw-r--r--backend/handlers/record.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/handlers/record.go b/backend/handlers/record.go
index c720823..e43cc61 100644
--- a/backend/handlers/record.go
+++ b/backend/handlers/record.go
@@ -204,7 +204,7 @@ func CreateRecordWithDemo(c *gin.Context) {
204 // c.JSON(http.StatusOK, models.ErrorResponse(fmt.Sprintf("Partner SteamID from demo and request does not match! Check your submission and try again.\nDemo Partner SteamID: %s\nRequest Partner SteamID: %s", convertedPartnerSteamID, record.PartnerID))) 204 // c.JSON(http.StatusOK, models.ErrorResponse(fmt.Sprintf("Partner SteamID from demo and request does not match! Check your submission and try again.\nDemo Partner SteamID: %s\nRequest Partner SteamID: %s", convertedPartnerSteamID, record.PartnerID)))
205 // return 205 // return
206 // } 206 // }
207 if convertedHostSteamID != user.(models.User).SteamID || convertedPartnerSteamID != user.(models.User).SteamID { 207 if convertedHostSteamID != user.(models.User).SteamID && convertedPartnerSteamID != user.(models.User).SteamID {
208 deleteFile(srv, hostDemoFileID) 208 deleteFile(srv, hostDemoFileID)
209 deleteFile(srv, partnerDemoFileID) 209 deleteFile(srv, partnerDemoFileID)
210 c.JSON(http.StatusOK, models.ErrorResponse("You are permitted to only upload your own runs!")) 210 c.JSON(http.StatusOK, models.ErrorResponse("You are permitted to only upload your own runs!"))