Skip to content

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

Open
@rpattath

Description

@rpattath

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

Metadata

Metadata

Assignees

Labels

Category: CodingChanges to code base or refactored code that doesn't fix a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions