Skip to content

Implemented Restricted & Private Community Functionality - #141

Merged
mbeps merged 3 commits into
mainfrom
dev
Dec 10, 2025
Merged

Implemented Restricted & Private Community Functionality#141
mbeps merged 3 commits into
mainfrom
dev

Conversation

@mbeps

@mbeps mbeps commented Dec 10, 2025

Copy link
Copy Markdown
Owner

This pull request introduces a comprehensive permissions system for communities, enhancing access control and user experience across posting, voting, and commenting features. It ensures that only users with the appropriate permissions can view communities, create posts, vote, or comment. Additionally, a new RestrictedCommunityBanner component provides clear feedback to users when their access is limited. The changes touch several key components to consistently enforce these permissions throughout the app.

Permissions Enforcement and Access Control:

User Experience Improvements:

Code Organization:

Component and UI Adjustments:

  • Updated About, Posts, PostItem, and Comments components to accept new permission props and conditionally render UI elements (like create post buttons, voting, and comment input) based on user permissions. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

These changes together provide a robust, consistent, and user-friendly permissions system across the community features.

- Only show posts and comments
- Cannot create posts or comments until subscribed
- Hidind UI when no permissions
- Extension of restricted community
- Do not show post and comments to unsubscribed user
- Gray out voting buttons
- Use common component to show restricted access
- Removed Create post button from about component card
- Showing restriction banner in the create post page
@vercel

vercel Bot commented Dec 10, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
circus-discussion Ready Ready Preview Comment Dec 10, 2025 10:14pm

@mbeps
mbeps merged commit 0e263fe into main Dec 10, 2025
5 checks passed
@mbeps mbeps mentioned this pull request Dec 11, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant