Skip to content

Commit

Permalink
fix owner bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamg795 committed Feb 6, 2023
1 parent da85cbc commit 1448346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion golink.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ func serveSave(w http.ResponseWriter, r *http.Request) {

// allow transferring ownership to valid users. If empty, set owner to current user.
owner := r.FormValue("owner")
if owner != "" {
if owner == "" {
owner = login
}

Expand Down

0 comments on commit 1448346

Please sign in to comment.