We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 487b454 commit 888e873Copy full SHA for 888e873
ui/src/pages/Questions/Detail/index.tsx
@@ -80,7 +80,10 @@ const Index = () => {
80
res.list = res.list?.filter((v) => {
81
// delete answers pnly show to author and admin and has searchparams aid
82
if (v.status === 10) {
83
- if ((isAuthor || isAdmin) && aid === v.id) {
+ if (
84
+ (v?.user_info.username === userInfo?.username || isAdmin) &&
85
+ aid === v.id
86
+ ) {
87
return v;
88
}
89
return null;
0 commit comments