summaryrefslogtreecommitdiffstats
path: root/modules/context/api.go
diff options
context:
space:
mode:
author赵智超 <1012112796@qq.com>2020-06-05 18:10:10 +0800
committerGitHub <noreply@github.com>2020-06-05 13:10:10 +0300
commit17f8de7a54dd2d04daf0b57f40e1724c0b1ffa65 (patch)
tree5f105383f5c54d1719e4c21e4c807b24a1bfd7cf /modules/context/api.go
parenta39557f8fbd6bfa3346580d2a33f1dcc779c0f7f (diff)
downloadgitea-17f8de7a54dd2d04daf0b57f40e1724c0b1ffa65.tar.gz
gitea-17f8de7a54dd2d04daf0b57f40e1724c0b1ffa65.zip
Fix to allow comment poster to edit or delete his own comments (#11671)
* bug: fix comment update permision check No the ui only allow poster to update or delet comment, which is not reasonable and different with handle logic, this pr change it to allow poster of comment do it ref code: https://github.com/go-gitea/gitea/blob/e8955173a9be1acaa9a3755c37b6059422acda20/routers/repo/issue.go#L1636 https://github.com/go-gitea/gitea/blob/e8955173a9be1acaa9a3755c37b6059422acda20/routers/repo/issue.go#L1681 fix #11663 Signed-off-by: a1012112796 <1012112796@qq.com> * simplify code * fix sign in Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'modules/context/api.go')
0 files changed, 0 insertions, 0 deletions