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

Fixed user permissions #492

Merged
merged 3 commits into from
Nov 13, 2024
Merged

Fixed user permissions #492

merged 3 commits into from
Nov 13, 2024

Conversation

ravirajput10
Copy link
Member

Fixed by: #489

@ravirajput10 ravirajput10 self-assigned this Sep 18, 2024
throw new Error(responses.action_not_allowed);
}

if (id === ctx.user._id.toString()) {
Copy link
Member

@rajat1saxena rajat1saxena Sep 25, 2024

Choose a reason for hiding this comment

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

In this case the user won't be able to edit other properties of their profile like their name and bio etc.

We only want to restrict the user from altering their permissions and active, other things like name, bio, tags should be editable via themselves.

@rajat1saxena rajat1saxena merged commit f502ca6 into main Nov 13, 2024
4 checks passed
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.

2 participants