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:
@ -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)]
|
||||
|
Reference in New Issue
Block a user