Skip to content

Commit 6a9c41b

Browse files
committed
fix: use uploaderId to check operation ownership
1 parent 460fcdc commit 6a9c41b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/viewer/OperationViewer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ export const OperationViewer: ComponentType<{
186186

187187
<div className="flex-1" />
188188

189-
{operation.uploader === auth.username && (
190-
// FIXME: 用户名可以重名,这里会让重名用户都显示管理按钮,需要等后端支持 operation.uploaderId 后再修复
189+
{operation.uploaderId === auth.userId && (
191190
<Popover2
192191
content={
193192
<ManageMenu

0 commit comments

Comments
 (0)