1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 08:25:16 +00:00

Replace get_members_info with a more appropriate route

This commit is contained in:
2021-04-25 15:58:24 +02:00
parent f34310733a
commit 92787dbb4d
5 changed files with 14 additions and 37 deletions

View File

@ -69,6 +69,10 @@ impl GroupMember {
pub fn is_moderator(&self) -> bool {
self.level <= GroupMembershipLevel::MODERATOR
}
pub fn is_at_least_member(&self) -> bool {
self.level <= GroupMembershipLevel::MEMBER
}
}
#[cfg(test)]