Fix: Handle status::User on group create.

This commit is contained in:
Paul
2021-06-14 16:00:29 +01:00
parent 95d7c23d32
commit f33611aee6
3 changed files with 8 additions and 4 deletions

View File

@@ -38,8 +38,12 @@ pub async fn req(user: User, info: Json<Data>) -> Result<JsonValue> {
}
for target in &set {
if get_relationship(&user, target) != RelationshipStatus::Friend {
Err(Error::NotFriends)?
match get_relationship(&user, target) {
RelationshipStatus::Friend |
RelationshipStatus::User => {},
_ => {
return Err(Error::NotFriends);
}
}
}

View File

@@ -1 +1 @@
pub const VERSION: &str = "0.5.0-alpha.0-patch.0";
pub const VERSION: &str = "0.5.0-alpha.1";