diff --git a/app/[slug]/[board]/(main)/layout.tsx b/app/[slug]/[board]/(main)/layout.tsx index a77f719..a00233f 100644 --- a/app/[slug]/[board]/(main)/layout.tsx +++ b/app/[slug]/[board]/(main)/layout.tsx @@ -59,7 +59,7 @@ export default async function BoardLayout({ placeholder="Search Posts (Coming Soon)" /> - + {hasAccess && } {session ? ( = ({ post, layout = "compact", currentUserId, + hasAccess, }) => { const upvoteCount = post?.upvoteCount ? post.upvoteCount : 0; const isUpvoted = post?.upvotes.some( @@ -93,11 +95,13 @@ export const PostsCard: React.FC = ({
- + {hasAccess && ( + + )}
@@ -159,11 +163,13 @@ export const PostsCard: React.FC = ({ > {formatPostStatus(post.status as string)} - + {hasAccess && ( + + )}