anitab-org / anitab-org/mentorship-backend

Delete relation when the user did not create the request - throws wrong error message

Abierto
#771 20 comentarios 0 reacciones 1 asignado Reclamado por @NenadPantelic Ver en GitHub
Category: Coding
Lenguaje dominante
Python
Estrellas
200
Forks
449
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**Describe the bug**

When a user tries to delete a relation that was not created by that user, a wrong error message is recieved.

**To Reproduce**

Steps to reproduce the behavior:

1. Login as testuserd
2. Delete a mentorship relation between testuserc and testuserb

This error message is recieved "This mentorship relation is not in the pending state."

**Expected behavior**
Expected error message is - "you cannot delete a mentorship request that you did not create."

**Screenshots**
![Screenshot from 2020-08-28 13-29-05](https://user-images.githubusercontent.com/26095715/91596124-b6a31880-e932-11ea-958b-e3734ca5f276.png)

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.