06. Authorization
Chapter 6 of 24 · 15 min
EXERCISE
A user with the "member" role tries to delete an API key they created. Write the authorization logic that allows this. Now modify it to only allow deletion of keys the user created, not keys created by others with the same role.