Commit 27c3aef

Eric Bower  ·  2024-05-07 16:26:20 -0400 EDT
parent e0fbd08
changes
1 files changed,  +1, -1
M mdw.go
M mdw.go
+1, -1
1@@ -353,7 +353,7 @@ func GitPatchRequestMiddleware(be *Backend, pr GitPatchRequest) wish.Middleware
2 						err = be.DB.Get(&req, "SELECT * FROM patch_requests WHERE id=?", prID)
3 						try(sesh, err)
4 						isOwner := req.Pubkey != be.Pubkey(sesh.PublicKey())
5-						if !isAdmin || isOwner {
6+						if !isAdmin && !isOwner {
7 							wish.Fatalln(sesh, "unauthorized, you are not the owner of this Patch Request")
8 							return
9 						}