PHP-099 / Intermediate
Self-privilege escalation (allowing role changes through mass updates)
Why is this a problem?
The profile-edit API accepts the role field as well.
How to fix it
php
$request->user()->update($request->only(['name', 'bio']));