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

added role editing option to user update #46

Merged
merged 1 commit into from
Aug 31, 2024

Conversation

FearsomeRover
Copy link
Contributor

Hát nekem ez él a fejemben, de ha nem így kéne, akkor javítom szívesen.

Copy link

vercel bot commented Aug 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
schbody-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 30, 2024 11:59am

if (user === null) {
throw new NotFoundException(`User with id ${id} not found`);
} else if (user.isSchResident === false && updateUserDto.roomNumber) {
throw new BadRequestException('Non-resident users cannot have a room number');
Copy link
Contributor

Choose a reason for hiding this comment

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

ez miert fontos itt?
nem csak az admint lehet allitani ebben?

@FearsomeRover
Copy link
Contributor Author

FearsomeRover commented Aug 31, 2024 via email

@FearsomeRover FearsomeRover merged commit f2123ad into main Aug 31, 2024
5 checks passed
@FearsomeRover FearsomeRover deleted the fix/user-role-management branch August 31, 2024 17:09
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