diff --git a/apps/web/app/s/[videoId]/page.tsx b/apps/web/app/s/[videoId]/page.tsx
index b1ac888798..8c55f63c46 100644
--- a/apps/web/app/s/[videoId]/page.tsx
+++ b/apps/web/app/s/[videoId]/page.tsx
@@ -166,12 +166,19 @@ async function getSharedSpacesForVideo(videoId: Video.VideoId) {
return sharedSpaces;
}
-function PolicyDeniedView({ reason }: { reason?: string }) {
+function PolicyDeniedView({
+ reason,
+ videoId,
+}: {
+ reason?: string;
+ videoId: string;
+}) {
+ const loginHref = `/login?next=/s/${videoId}`;
let title = "This video is private";
let description: React.ReactNode = (
<>
- If you own this video, please sign in to manage
- sharing.
+ If you own this video, please sign in to
+ manage sharing.
>
);
@@ -180,7 +187,7 @@ function PolicyDeniedView({ reason }: { reason?: string }) {
description = (
<>
The owner of this video has restricted access. Please{" "}
- sign in with an authorized email address to
+ sign in with an authorized email address to
view.
>
);
@@ -195,12 +202,22 @@ function PolicyDeniedView({ reason }: { reason?: string }) {
{description}
+ {reason !== "email_restriction_denied" ? ( + + Sign in + + ) : null} ); } const renderPolicyDenied = (videoId: Video.VideoId, reason?: string) => - Effect.succeed(