removed some more warnings until these vars are used
This commit is contained in:
parent
04dca141b5
commit
e58d4abb28
@ -10,14 +10,14 @@ pub const CREATE_PERM_INVITES:u64 = 8; // to make perma invites you need both fl
|
|||||||
|
|
||||||
|
|
||||||
pub const OWNER: u64 = 1 << 63;
|
pub const OWNER: u64 = 1 << 63;
|
||||||
pub const ADMIN: u64 = 1 << 62; // can make other admins but can't really touch the owner
|
pub const _ADMIN: u64 = 1 << 62; // can make other admins but can't really touch the owner
|
||||||
|
|
||||||
// ADMIN PERMS
|
// ADMIN PERMS
|
||||||
pub const CREATE_CHANNEL:u64 = 64;
|
pub const CREATE_CHANNEL:u64 = 64;
|
||||||
pub const DELETE_CHANNEL:u64 = 128;
|
pub const DELETE_CHANNEL:u64 = 128;
|
||||||
|
|
||||||
// BELOW ARE COLLECTIVE PERMISSION SETS
|
// BELOW ARE COLLECTIVE PERMISSION SETS
|
||||||
pub const OWNER_PERMS: u64 = std::u64::MAX;
|
pub const _OWNER_PERMS: u64 = std::u64::MAX;
|
||||||
pub const GENERAL_NEW: u64 = JOIN_VOICE | SEND_MESSAGES | ALLOW_PFP | CHANGE_NICK;
|
pub const GENERAL_NEW: u64 = JOIN_VOICE | SEND_MESSAGES | ALLOW_PFP | CHANGE_NICK;
|
||||||
pub const ADMIN_PERMS: u64 = !(std::u64::MAX & OWNER); // filter the only perm admins don't get
|
pub const ADMIN_PERMS: u64 = !(std::u64::MAX & OWNER); // filter the only perm admins don't get
|
||||||
|
|
||||||
@ -26,7 +26,6 @@ pub fn get_perm_mask(path: &str) -> Option<u64> {
|
|||||||
INVITE_CREATE,
|
INVITE_CREATE,
|
||||||
CHANNELS_LIST, CHANNELS_CREATE, CHANNELS_DELETE,
|
CHANNELS_LIST, CHANNELS_CREATE, CHANNELS_DELETE,
|
||||||
MESSAGE_SEND,
|
MESSAGE_SEND,
|
||||||
SERVER_META,
|
|
||||||
};
|
};
|
||||||
match path {
|
match path {
|
||||||
INVITE_CREATE => Some(CREATE_TMP_INVITES),
|
INVITE_CREATE => Some(CREATE_TMP_INVITES),
|
||||||
|
Loading…
Reference in New Issue
Block a user