Skip to content

fix(sec): enforce role validation on user role updates (#11597) - #11668

Open
jihadMo wants to merge 1 commit into
SecureBananaLabs:mainfrom
jihadMo:fix/user-role-update-verification-check
Open

fix(sec): enforce role validation on user role updates (#11597)#11668
jihadMo wants to merge 1 commit into
SecureBananaLabs:mainfrom
jihadMo:fix/user-role-update-verification-check

Conversation

@jihadMo

@jihadMo jihadMo commented Aug 9, 2026

Copy link
Copy Markdown

Resolves #11597 /claim #11597.

Adds \updateUserRole\ in \�pps/api/src/services/userService.js\ enforcing strict role enum validation (\client, \ reelancer, \�dmin) with 400 error, backed by unit test suite in \�pps/api/src/services/user-role-verification.test.js.

github-actions Bot added a commit that referenced this pull request Aug 9, 2026
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