authorized check on details page

This commit is contained in:
austinkelsay 2025-04-20 18:17:25 -05:00
parent 11367560c0
commit 7f0e480788
No known key found for this signature in database
GPG Key ID: 5A763922E5BA08EE

View File

@ -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}
/>
</div>
) : 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}
/>
</div>
) : null}