fix: getClaimStatus checks serverOwned flag, not just session id match
This commit is contained in:
@@ -139,7 +139,8 @@ export function getClaimStatus() {
|
|||||||
owner: claimOwner,
|
owner: claimOwner,
|
||||||
ownerCwd: claimOwnerCwd,
|
ownerCwd: claimOwnerCwd,
|
||||||
sessionId: SESSION_ID,
|
sessionId: SESSION_ID,
|
||||||
isOwner: claimOwner === SESSION_ID,
|
serverOwned,
|
||||||
|
isOwner: serverOwned && claimOwner === SESSION_ID,
|
||||||
pending: [...pendingClaims.values()].filter((c) => c.status === "pending"),
|
pending: [...pendingClaims.values()].filter((c) => c.status === "pending"),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user