wizbots / labtab

0 stars 0 forks source link

Handle 40X responses correctly #138

Open internetmosquito opened 5 years ago

internetmosquito commented 5 years ago

We need to handle 40x responses from API correctly

For instance if mentor is not allowed to promote or demote a student we will return 403. A message should be shown to user saying something like:

"You don't have the appropriate permissions to do this action"

The same happens for Wizchips.

None of this is being handle correctly right now given mentor's feedback where they tell us "promote/demote and wizchips do not work" where the problem is that they don't have permissions but the app is not giving this message

kapoorutd commented 5 years ago

@internetmosquito We have implemented the suggested beverage changes in the code for the respective api response.