From 0608b058cce7d6f75b39434391a7641a40bf7800 Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Wed, 13 Sep 2023 12:21:31 +0200 Subject: [PATCH] Re-enable conditional signing for pinning --- src/utils/bit-pinning-helper.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/utils/bit-pinning-helper.ts b/src/utils/bit-pinning-helper.ts index 1a82df3900..a31d0dd1d9 100644 --- a/src/utils/bit-pinning-helper.ts +++ b/src/utils/bit-pinning-helper.ts @@ -49,10 +49,5 @@ export const canPin = (hubChannel: HubChannel, eid: EntityID): boolean => { const hasFile = !!fileId; const hasPromotableFile = hasFile && APP.store.state.uploadPromotionTokens.some((upload: any) => upload.fileId === fileId); - return ( - isNetworkInstantiated(eid) && - !isPinned(eid) && - hubChannel.can("pin_objects") && // TODO: Remove once conditional sign in is implemented - (!hasFile || hasPromotableFile) - ); + return isNetworkInstantiated(eid) && !isPinned(eid) && (!hasFile || hasPromotableFile); };