feat: preview link as
Fixes #696
Description
Quickly view the document/dataroom without going through access form, nda, verification etc.
Screenshots
@yashsharma999 is attempting to deploy a commit to the mftsio Team on Vercel.
A member of the Team first needs to authorize it.
alright, but essentially we need to somehow bypass isProtected prop if i'm not wrong ?
isProtected={
viewAs === "QUICK_PREVIEW"
? false
: !!(emailProtected || linkPassword || enableAgreement)
}
but essentially we need to somehow bypass isProtected prop if i'm not wrong ?
@yashsharma999 yes that's correct. but right now with your current implementation, you could add ?viewAs=QUICK_VIEW to any normal link and it would bypass the isProtected.
Also as I'm writing it, we double check server-side actually if the link is protected again, so you'd need to pass something to the api function to get around the protection
@yashsharma999 I'm closing this PR for now as I didn't hear back from you and it's not a big dealbreaker at the moment.
I'm still reviewing your other PRs.
I'm also rewarding you for your effort nonetheless! /award 150
Awarding yashsharma999: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/yashsharma999