mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-07-07 06:35:34 +00:00
feat(blahd): impl non-self member removal
This commit is contained in:
parent
a8c29cb9b2
commit
ad4a38cf43
5 changed files with 101 additions and 12 deletions
|
@ -387,9 +387,14 @@ bitflags::bitflags! {
|
|||
pub struct MemberPermission: i32 {
|
||||
const POST_CHAT = 1 << 0;
|
||||
const ADD_MEMBER = 1 << 1;
|
||||
// TODO: Group admin permissions together.
|
||||
const DELETE_ROOM = 1 << 2;
|
||||
const LIST_MEMBERS = 1 << 3;
|
||||
|
||||
// TODO: Should we have multiple levels of removal permission, so that admins
|
||||
// may not remove all other admins?
|
||||
const REMOVE_MEMBER = 1 << 4;
|
||||
|
||||
const MAX_SELF_ADD = Self::POST_CHAT.bits();
|
||||
const MAX_PEER_CHAT = Self::POST_CHAT.bits() | Self::DELETE_ROOM.bits() | Self::LIST_MEMBERS.bits();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue