Small patch.

This commit is contained in:
Paul Makles
2020-06-21 11:28:58 +01:00
parent 0a027b68e0
commit 33f3bac4b8
2 changed files with 3 additions and 2 deletions

View File

@@ -172,7 +172,8 @@ impl PermissionCalculator {
let relationship =
get_relationship_internal(&self.user.id, &other_user, &relationships);
if relationship == Relationship::Friend {
if relationship == Relationship::SELF ||
relationship == Relationship::Friend {
permissions = 177;
} else if relationship == Relationship::Blocked
|| relationship == Relationship::BlockedOther