Fix underlying issue with save override prevention
This commit is contained in:
1 parent
e19104c86a
commit
c12c770844
1 file changed
+1
-1
+1
-1
@@ -223,7 +223,7 @@ func handleSaveData(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
var active bool
|
||||
if r.URL.Path == "/savedata/get" {
|
||||
if r.URL.Path == "/savedata/get" && datatype == 0 {
|
||||
err = db.UpdateActiveSession(uuid, token)
|
||||
if err != nil {
|
||||
httpError(w, r, fmt.Errorf("failed to update active session: %s", err), http.StatusBadRequest)
|
||||
|
||||
Reference in new issue
Block a user