From 7f0e4807883ed181cc61a6ab336df7ce87ea40b0 Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Sun, 20 Apr 2025 18:17:25 -0500 Subject: [PATCH] authorized check on details page --- src/pages/details/[slug]/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/details/[slug]/index.js b/src/pages/details/[slug]/index.js index 9d12a84..b862c9b 100644 --- a/src/pages/details/[slug]/index.js +++ b/src/pages/details/[slug]/index.js @@ -220,6 +220,7 @@ const Details = () => { user={nsec || npub || null} relays="wss://nos.lol/, wss://relay.damus.io/, wss://relay.snort.social/, wss://relay.nostr.band/, wss://relay.primal.net/, wss://nostrue.com/, wss://purplerelay.com/, wss://relay.devs.tools/" disable="zaps" + isAuthorized={!event.price || decryptedContent || session?.user?.role?.subscribed || authorView} /> ) : nAddress !== null ? ( @@ -229,6 +230,7 @@ const Details = () => { user={npub} relays="wss://nos.lol/, wss://relay.damus.io/, wss://relay.snort.social/, wss://relay.nostr.band/, wss://relay.primal.net/, wss://nostrue.com/, wss://purplerelay.com/, wss://relay.devs.tools/" disable="zaps" + isAuthorized={!event.price || decryptedContent || session?.user?.role?.subscribed || authorView} /> ) : null}