anitab-org / anitab-org/mentorship-backend

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

未关闭
#771 20 条评论 0 个 reaction 已指派 1 人 已被 @NenadPantelic 认领 在 GitHub 查看
Category: Coding
主要语言
Python
星标
200
派生
449
PR 合并指标
30 天内没有已合并 PR

描述

**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)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。