馃悰 [Bug]Blocked users can unblock themselves
Created by: Tirokk
Authored by mattwr18 Closed
馃悰 Bugreport
HIGH PRIORITY BUG Blocked users should not see a button or link to unblock themselves since a) they should not be able to find out who has blocked them b) they should not be able to remove this.
Steps to reproduce the behavior
- log in as a user(user1)
- block another user(user2)
- login as user2
- visit profile of user1
- see that you have a button and a link to unblock the user
- unblock yourself.
馃ぃ
Expected behavior
It should be solely the control of the blocking user to decide this.
Additional context
This was introduced with Block users 2.0 where we wanted to make commenting on another user's posts only possible if there is no BLOCKED
relationship in either direction. We still want this functionality, but we need a second query hasBlocked
to look for the direction of the blocking relationship.