Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added User Role System feature #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aashiimathur
Copy link

What does this PR do?

Implement a user role system that assigns different roles (admin, editor, user) with specific permissions for managing blog content.
This feature will allow for better content management, enabling specific users to edit or delete posts while restricting access for regular users.

Fixes #35

Type of change

Implemented roles such as Admin, Editor, and User.
Added role definitions in the user model to ensure clarity and maintainability.
Implemented middleware to enforce role-based permissions on various endpoints.
Only Admin users can perform actions like creating, editing, or deleting blog posts.
Editors can edit existing posts but cannot delete them.
Regular Users can only view posts.
Updated the user interface to reflect role-specific actions.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Thank you for your contribution! Your pull request has been submitted successfully. A maintainer from MERN Blog team will review it as soon as possible. We appreciate your support in making this project better

@aashiimathur
Copy link
Author

aashiimathur commented Oct 19, 2024

@sharmavikas4 one request - can you add 'hacktoberfest-accepted' label to my issue?

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.

[Feat] User Role System
1 participant