There is [PUT] /users/{userid}/profile-picture endpoint that allows to set profile picture for profile
As this endpoint has userid as input it will be better to restrict use it only for user itselfs
Solution
If userid != current user id return 403 status code
There is [PUT] /users/{userid}/profile-picture endpoint that allows to set profile picture for profile As this endpoint has
userid
as input it will be better to restrict use it only for user itselfsSolution If userid != current user id return 403 status code