1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-14 16:26:23 -07:00

Fix edit post not letting non-privileged users edit their posts

This commit is contained in:
Eggbertx 2023-02-11 15:33:15 -08:00
parent 0ec36c2840
commit 46db3e0abc
3 changed files with 10 additions and 6 deletions

View file

@ -8,7 +8,7 @@
<input name="postid" type="hidden" value="{{.post.ID}}" />
<input name="boardid" type="hidden" value="{{.board.ID}}" />
<input name="threadid" type="hidden" value="{{.post.ThreadID}}" />
<input name="password" type="hidden" value="{{.post.Password}}" />
<input name="password" type="hidden" value="{{.password}}" />
<input name="doedit" type="hidden" value="post" />
<table id="postbox-static">
<tr><th class="postblock">Name</th><td>{{stringAppend .post.Name "!" .post.Tripcode}}</td></tr>
@ -25,7 +25,7 @@
<input name="postid" type="hidden" value="{{$.post.ID}}" />
<input name="boardid" type="hidden" value="{{$.board.ID}}" />
<input name="threadid" type="hidden" value="{{$.post.ThreadID}}" />
<input name="password" type="hidden" value="{{$.post.Password}}" />
<input name="password" type="hidden" value="{{$.password}}" />
<input name="doedit" type="hidden" value="upload" />
<table id="postbox-static">
{{- with .upload -}}